I have a soap client that is generating the following call and response: ======================================================= = Elapsed: 162 milliseconds = In message: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:greetPerson soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://demo.unitedcoders.com/"><ns1:arg0 xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">Hello!</ns1:arg0></ns1:greetPerson></soapenv:Body></soapenv:Envelope> = Out message: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Unmarshalling Error: unexpected element (uri:"http://demo.unitedcoders.com/", local:"arg0"). Expected elements are <{}arg0> </faultstring></soap:Fault></soap:Body></soap:Envelope> =======================================================
This is obviously giving the exception that is documented. The problem (I've used soapUI to test) is the arg0: <ns1:arg0 xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">Hello!</ns1:arg0> If I remove the ns1 and just send arg0, it works. That is, this is "correct": <arg0 xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">Hello!</arg0> Any ideas? -- -------------------------------- http://www.mikeski.net --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
