axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Hamerling (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-2408) ServiceClient.sendReceive() method doesn't return multiRef elements of the SOAP response
Date Tue, 25 Nov 2008 12:04:44 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650549#action_12650549
] 

Christophe Hamerling commented on AXIS2-2408:
---------------------------------------------

This is due to the sendReceive code (taken from Axis2 1.3) :

return response.getEnvelope().getBody().getFirstElement();

So what is the best way to handle multiref with Axis2? Override the ServiceClient class for
specific needs is not very nice to me...

> ServiceClient.sendReceive() method doesn't return multiRef elements of the SOAP response
> ----------------------------------------------------------------------------------------
>
>                 Key: AXIS2-2408
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2408
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>         Environment: Windows 2000, JDK 1.5, Axis 1 server
>            Reporter: C├ędric Girodengo
>
> I am using the Axis2 ServiceClient interface to do a blocking IN-OUT call to a Web Service
like this :
> ServiceClient sender = new ServiceClient();
> sender.setOptions(axis2Options);
> OMElement result = sender.sendReceive(axisOp);
> The result returns me something like this, without the multiref elements I should normally
obtain :
> <getMyAddressResponse xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>            <getMyAddressReturn href="#id0" />
> </getMyAddressResponse>
> However, if I use sendReceiveNonBlocking(), I get the multiref elements in the response!
> I use Axis 2 1.1.1 for the client side, and an old Axis 1.0 on the server side.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message