You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Qiyun Yang <qy...@hotmail.com> on 2006/12/16 10:39:33 UTC
[axis2 1.1] Using ServiceClient not working
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
Re: [axis2 1.1] Using ServiceClient not working
Posted by Anne Thomas Manes <at...@gmail.com>.
What does the request message from the stub look like?
Can you also provide the WSDL?
On 12/16/06, Qiyun Yang <qy...@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