Hi,

I developed two versions of clients, one using stub which works and another one using serviceClient which not not work (in terms of result).

I checked the soap message, using ServiceClient, the client sent the soap request as:

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
 <soapenv:Header />
 <soapenv:Body>
   <tns:parameters xmlns:tns="http://example.org/AreaService/";>
     <tns:width>12.2</tns:width>
     <tns:height>25.5</tns:height>
   </tns:parameters>
 </soapenv:Body>
</soapenv:Envelope>

the skeleton received the following:

From Client:
<tns:parameters xmlns:tns="http://example.org/AreaService/"; xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
 <tns:width>12.2</tns:width>
 <tns:height>25.5</tns:height>
</tns:parameters>

The codes retrieve the data:

float width = param0.getParameters().getWidth();
float height = param0.getParameters().getHeight();
System.out.println("Data from client: " + width + " " + height );

result:
Data from client: 0.0 0.0

why not 12.2 and 25.5 as received from incoming xml doc?

I am not sure where went wrong, please advise which is appreciated.

[it works as expected if using stub].
Thanks.
Q

_________________________________________________________________
Find just what you are after with the more precise, more powerful new Windows Live Search. http://search.msn.com.sg/ Try it now.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to