hello, Im new to CXF and webservices in general. Can anybody explain to me how I can add xsd bindings to the JaxWsClientProxy? Basicaly I have used the wsdl2java tool to generate my bindings as defined in the WSDL for the webservie I am connecting to. This is all good and I have a client that tries to call one of the webservice methods. This particular method takes an object as its payload which is defined in a seperate xsd and not in the wsdl.
In order to generate the java code for these external objects - I use the cxf-xjc-plugin and am able to generate the java code based n the xsd. However when I try and pass an instance of my object to the webservice method - I get javax.xml.ws.soap.SOAPFaultException: Marshalling Error: class com.test.SimpleObject nor any of its super class is known to this context. Which makes sense because the JaxWsClientProxy is not aware of the external bindings I suppose? THe problem is I am realy not sure how to make it aware... I tried the following in my pom: <execution> <id>generate-sources-webCAT-WSDL</id> <phase>generate-sources</phase> <configuration> <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/wsdl/ExternalWebService.wsdl</wsdl> <bindingFiles> <bindingFile>${basedir}/src/main/xsd/SimpleObject.xsd</bindingFile> </bindingFiles> <extraargs> <extraarg>-client</extraarg> </extraargs> </wsdlOption> </wsdlOptions> </configuration> <goals> <goal>wsdl2java</goal> </goals> </execution> however this didnt work! cna somebody tell me how I defined an external binding based on an xsd? sorry if this is a newbie questoin - but hey that is what I am :) Thx -- View this message in context: http://cxf.547215.n5.nabble.com/wsdl2java-with-external-xsd-binding-help-tp3329178p3329178.html Sent from the cxf-user mailing list archive at Nabble.com.