users@jax-rpc.java.net

Problem with SOAP-ENC

From: Sudhir(I) <"Sudhir>
Date: Sat, 02 Aug 2003 16:20:24 -0700

EJB as a web service clientI installed S1 AppServer 7.0 and deployed the
toejb jaxrpc sample bundled with the app server.
The request I sent to this service was

 <?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <SOAP-ENV:Body>
  <tns:sayHello xmlns:tns="http://hello.org/wsdl/HelloWorld">
   <String_1 xsi:type="xsd:string">stringData1</String_1>
  </tns:sayHello>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

The server is sending a soap fault saying that the soap encoding is null in
the request. Is there a difference in specifying the
encoding as "soap-enc" and "SOAP-ENC"???? Because in the WSDL file for this
service encoding is specified as "soap-enc"!


Thanks
Sudhir