When modifying stuff in the schema, you have to use a jaxb binding, not a jaxws binding. We feed the schemas into JAXB and thus it has to be something that JAXB expects.
Dan On Thursday, December 01, 2011 12:23:45 PM David Moron wrote: > Hello, > > > Due to a name conflict in a WSDL file i'm trying to customize class names > for conflicting elements. I've used an extenal binding file and an embedded > customization but in both cases the maven cxf-codegen-plugin throws an > exception: > Caused by: org.xml.sax.SAXParseException: Unexpected <jaxws:bindings> > appears at line 0 column 0 > at > com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.unexpectedX(NGCCRuntimeEx.java:49 > 9) > > Please see original and embedded WSDL attached. > > Binding customizacion in external file looks like: > <jaxws:bindings version="2.0" > wsdlLocation="wsdl/common.SVGetWSData.wsdl" > xmlns:jaxws="http://java.sun.com/xml/ns/jaxws" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:xs="http://www.w3.org/2001/XMLSchema"> > > <jaxws:package name="com.bs.fp.servicios.host.svget"/> > <jaxws:bindings > node="wsdl:definitions/wsdl:types/xs:schema[@targetNamespace=' > http://svgetwsdata.services.common.product.cdsws.bs.com/xsd']/xs:complexType > [@name='WSDataResponse' ]"> > <jaxws:class name="WSDataResponse" /> > </jaxws:bindings> > </jaxws:bindings> > > What am I doing wrong? > > Thank you in advance -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
