users@jax-rpc.java.net

Re: Problem with SOAP-ENC

From: Arun Gupta <arun.gupta_at_sun.com>
Date: Mon, 04 Aug 2003 14:04:07 -0700

Hi Sudhir,

xmlns:SOAP-ENC is only defining a new namespace prefix for your SOAP
envelope. To correctly specify the encoding style, you need to add
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" to
the SOAP envelope.

Thanks for your interest in JAX-RPC.

Regards,
-Arun

Sudhir(I) wrote:

> I 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


--
=============================================
There is only one me, I must live myself!
There is only one today, I must live itself!
=============================================
http://members.tripod.com/~apgupta/index.html
=============================================