Hi!

I try to use a custom binding file (<jaxb:bindings...) for my code
generation
via wsdl2java (axis2).

But as far as I can see, there is no option to pass such a binding file to
wsdl2java / JaxB.
According to
http://java.sun.com/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html
xjc uses the -b flag for custom binding files.

But -Eb for wsdl2java doesn't change anything. Even if my custom binding
file
isn't valid there is no error from wsdl2java.
So I guess I'm using the wrong flag.

Any ideas?

I try to use the following custom binding file:
<jaxb:bindings
        xmlns:jaxws="http://java.sun.com/xml/ns/jaxws";
        xmlns:xs="http://www.w3.org/2001/XMLSchema";
        xmlns:jaxb="http://java.sun.com/xml/ns/jaxb";
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
        <jaxb:bindings schemaLocation="my.xsd" node="/xs:schema">
                <jaxb:globalBindings
                  typesafeEnumMemberName="generateName"
                />
        </jaxb:bindings>
</jaxb:bindings>

Thanks in advance,
Sebastian

Reply via email to