You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Christophe Hamerling (JIRA)" <ji...@apache.org> on 2008/11/25 13:04:44 UTC
[jira] Commented: (AXIS2-2408) ServiceClient.sendReceive() method
doesn't return multiRef elements of the SOAP response
[ 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