Unsure if this is the issue but when I had done this in the past (http://www.jroller.com/gmazza/entry/customizing_jaxb_artifacts#BindingFile) the parent of <jxb:package/> was <jaxb:schemaBindings/>, not <jaxws:bindings/>

HTH,
Glen

On 03/09/2012 03:53 AM, Néstor Boscán wrote:
Hi

I have the following binding file:

<jaxws:bindings
           xmlns:jaxws="http://java.sun.com/xml/ns/jaxws";
           xmlns:xs="http://www.w3.org/2001/XMLSchema";
           xmlns:jxb="http://java.sun.com/xml/ns/jaxb";
           xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
   <jaxws:bindings
  node="wsdl:definitions/wsdl:types/xs:schema/xs:complexType[@name='MyFault1'
or @name=' MyFault2' or @name=' MyFault3' ]">
     <jxb:package name="myexceptionpackage"/>
   </jaxws:bindings>
   <jaxws:bindings
  node="wsdl:definitions/wsdl:types/xs:schema/xs:complexType[@name='myTo1']">
     <jxb:package name="mypackage1"/>
   </jaxws:bindings>
   <jaxws:bindings
  node="wsdl:definitions/wsdl:types/xs:schema/xs:complexType[@name='myTo2']">
     <jxb:package name="mypackage2"/>
   </jaxws:bindings>
</jaxws:bindings>

The wsdl2java executes correctly but non of my classes are defined in the
packages that I configured.

Regards,

Néstor Boscán



--
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza

Reply via email to