axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: [axis2 1.1] Using ServiceClient not working
Date Sat, 16 Dec 2006 15:35:42 GMT
What does the request message from the stub look like?
Can you also provide the WSDL?

On 12/16/06, Qiyun Yang <qyyang79@hotmail.com> wrote:
>
> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message