I have a WSDL that has two operations that share a complexType (DemographicsDoc). I am attempting to pull this complexType out into it’s own schema. I have successfully created a schema for the complexType, I have imported the schema into the WSDL. I am using weblogic’s clientgen to generate a java client based on the WSDL. Clientgen appears to work properly, it creates only one set of DemographicsDoc classes.
The problem occurs when I attempt to call the web service on my 6.1 IS. The SOAP response has a different xmlnamespace (sc1:__Demographics_Doc) than is expected (customer:__Demographics_Doc). This causes the following exception to be thrown: javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException:.
I am assuming there is a way to get this to work so I can define shared schemas for complexTypes that are shared across operations or WSDL’s. I have read all the docs from webMethods and cannot figure out how to get this to work.
DemographicsDoc.xsd (0.6 k)
CustomerPost.wsdl (7.2 k)