axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepal Jayasinghe <>
Subject Re: sendReceive and sendRobust
Date Wed, 28 Feb 2007 04:29:10 GMT
Hi Rishi ;

sendRobust  is to invoke an in-only operation , and when you use that if
something goes wrong in the server then you will be notify .

When you want to invoke an in-out operation (which has a response) then
you need to use sendReceive. Since sendReceive has designed to invoke
in-out it is not recommended to use that to invoke in-only operation and
if you do so you will get exception as well,


> Hi All
> I am confused abt the usage of these 2 methods in the ServiceClient
> class. As per the axis2 doc - we should use sendRobust if we are not
> needing the response but care abt the fault and we should use
> sendReceive if we care abt the reponse and fault. Does it mean that
> calling sendReceive should work in both cases?
> Case 1> The web service operation I am calling has no response
> [service method has java void as return type]
> Case 2>The web service operation has declared [service method has
> OMElement as return type] response but 
>        Case2 a>for an invocation of that method it returns null
>        Case2 b>for another invocation it return data.
> I am testing my application with these above cases [and subcases] and
> its working with sendReceive in client. In that case I am not clear
> whats the use of having sendRobust ?? It seems using sendReceive will
> be enough for handling all the cases - right?
> I am writing my own DII Web Service Client using the ServiceClient
> api. Unless really needed I want to use sendReceive and fireAndForget
> [for oneway]. Can anyone point me if I am not getting this right.
> -- 
> thanks
> Rishi

"The highest tower is built one brick at a time"

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message