I found :

-----\/-\/-\/-----
Controlling JAXB Bindings

With JAXB 2 it is possible to control the packages the schema
generated beans are placed in.

<jxb:bindings jxb:version="1.0"
              xmlns:jxb="http://java.sun.com/xml/ns/jaxb";
              xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
   <jxb:bindings
schemaLocation="../wsdl/echoFault.wsdl#types?schema1"
node="/xsd:schema">
        <jxb:schemaBindings>
            <jxb:package name="org.codehaus.xfire.echo.external">
            </jxb:package>
        </jxb:schemaBindings>
   </jxb:bindings>
</jxb:bindings>
-----/\-/\-/\-----

I have the wsdl file
http://www.oasis-open.org/committees/wsrp/specifications/version1/wsrp_service.wsdl

I changed that example with
<jxb:bindings jxb:version="1.0"
              xmlns:jxb="http://java.sun.com/xml/ns/jaxb";
              xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
   <jxb:bindings schemaLocation="wsrp_v1_types.xsd#types?schema1"
node="/xsd:schema">
                        <jxb:schemaBindings>
                            <jxb:package 
name="org.exoplatform.services.wsrp.types">
                            </jxb:package>
                        </jxb:schemaBindings>
   </jxb:bindings>
</jxb:bindings>

I have one question, what does exactly mean
"wsrp_v1_types.xsd#types?schema1" and "/xsd:schema"? Should I change
it with some else?

Regards,
Alexey

On 6/22/07, Alexey Zavizionov <[EMAIL PROTECTED]> wrote:
Does anybody know about externalBindings option?
Can it helps me?

I'm looking at
http://www.mail-archive.com/[email protected]/msg01057.html

For generate sources I use xfire-maven-plugin 1.0-SNAPSHOT

Regards,
Alexey

On 6/22/07, Alexey Zavizionov <[EMAIL PROTECTED]> wrote:
> Hello,
>
> How can I do this?
> I need to change namespaces in wsdl to package name. Does XFire have
> this option?
>
> Thanks in advance,
> Alexey
>


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to