Hello, I am trying to deploy a document style web service with a single
"echoString (String str)" function.  However, I think I'm totally missing
something.  I've tried to call the function directly using the
Call.invoke(Object[] args) method and by using the generated stubs created
from the WSDL2Java utility.  However, I get two separate errors!  Anyone
have an idea what I'm doing wrong?

When calling the service directly, I get the following error and TCPMon
output:

org.xml.sax.SAXException: SimpleDeserializer encountered a child element,
which is NOT expected, in something it was trying to deserialize.

<?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>
  <echoString
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
   <arg0 xsi:type="xsd:string">hello</arg0>
  </echoString>
 </soapenv:Body>
</soapenv:Envelope>


When using the WSDL2Java stubs, I get a "no such operation str" error and
TCPMon output:

<?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>
  <str xmlns="">hello</str>
 </soapenv:Body>
</soapenv:Envelope>


Why are two different envelopes being created, and are either of them
correct?

Laura

Reply via email to