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 "Shahi, Ashutosh" <As...@ca.com> on 2005/05/17 11:50:54 UTC

[Axis2] Changed Call method?

Hi all,

            Is it that we have sendReceiveSync() method in
org.apache.axis.clientapi.Call replaced by:

public OMElement invokeBlocking(String axisop, OMElement toSend)?

This method takes an additional parameter axisop. What all values can it
take and why has this been added?

I see a sample program passing "echo" to it, is there any predefined
list from which these values are taken?

 

Also, the return type has been changed to OMElement from SOAPEnvelope,
if I pass a SOAPEnvelope, can I assume the response will be SOAPEnvelope
as well and typecast safely?

 

Thanks,

Ashutosh

 


Re: [Axis2] Changed Call method?

Posted by Srinath Perera <he...@gmail.com>.
>             Is it that we have sendReceiveSync() method in
> org.apache.axis.clientapi.Call replaced by: 
> 
> public OMElement invokeBlocking(String axisop, OMElement toSend)? 
Yes

> This method takes an additional parameter axisop. What all values can it
> take and why has this been added? 
> I see a sample program passing "echo" to it, is there any predefined list
> from which these values are taken? 
It is the name of the Operation you want call in the ServiceEndpoint
.. echo is the name of the operation !

  
> Also, the return type has been changed to OMElement from SOAPEnvelope, if I
> pass a SOAPEnvelope, can I assume the response will be SOAPEnvelope as well
> and typecast safely? 

No the return type is a OMElment .. if u pass SOAPEnvelope it would be

<SOAPEnvelope ...>
<body>
    <SOAPEnvelope> ....</SOAPEnvelope>
</body>
 that goes on the wire !!

Thanks
Srinath