Hi Glenn Thanks for the quick reply. I tried with the schemaBindings and I get:
[INFO] Thrown by JAXB: compiler was unable to honor this schemaBinding customization. It is attached to a wrong place, or its inconsistent with other bindings. If the node attribute in the bindings element points to the schema element no problem, but if it points to a complexType I get this error. Regards, Néstor Boscán On Fri, Mar 9, 2012 at 4:44 AM, Glen Mazza <[email protected]> wrote: > 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<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<http://java.sun.com/xml/ns/jaxws> >> " >> >> xmlns:xs="http://www.w3.org/**2001/XMLSchema<http://www.w3.org/2001/XMLSchema> >> " >> >> xmlns:jxb="http://java.sun.**com/xml/ns/jaxb<http://java.sun.com/xml/ns/jaxb> >> " >> >> xmlns:wsdl="http://schemas.**xmlsoap.org/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 > >
