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 "Cédric Girodengo (JIRA)" <ji...@apache.org> on 2007/03/27 15:16:32 UTC

[jira] Created: (AXIS2-2408) ServiceClient.sendReceive() method doesn't return multiRef elements of the SOAP response

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


[jira] Commented: (AXIS2-2408) ServiceClient.sendReceive() method doesn't return multiRef elements of the SOAP response

Posted by "Christophe Hamerling (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Resolved: (AXIS2-2408) ServiceClient.sendReceive() method doesn't return multiRef elements of the SOAP response

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-2408.
-------------------------------------

    Resolution: Cannot Reproduce

We can't recreate the issue. could you please try Axis2 1.2 and let us know if you see the problem again? Please log the "full" soap response (with http headers) from the old Axis 1.0 service and we'll reopen the issue.

thanks,
dims

> 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


[jira] Commented: (AXIS2-2408) ServiceClient.sendReceive() method doesn't return multiRef elements of the SOAP response

Posted by "Philipp Leitner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499825 ] 

Philipp Leitner commented on AXIS2-2408:
----------------------------------------

I have tried with Axis2, to no avail.

The SOAP response contains all the multirefs as expected:

<snip>
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Tue, 29 May 2007 15:41:58 GMT

2e6
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><orderResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><orderReturn href="#id0"/></orderResponse><multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1:confirmation" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://dsg.tuwien.ac.at"><id xsi:type="xsd:string">Philipp Leitner : 13722725-bb6c-4143-8bff-cfe057db1b8b</id><value xsi:type="xsd:int">1000</value></multiRef></soapenv:Body></soapenv:Envelope>
0
</snip>

BUT:
Sytem.out.println( sender.sendReceive(axisOp)) displays the following:

<orderResponse xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<orderReturn href="#id0">
</orderReturn>
</orderResponse>

(no multirefs in this AXIOM model...)

thanks, 
philipp  

> 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