Hi Deepal
I am using a pretty old version of axis2 - a nightly build which I took
around the August 2006 time frame [axis2 1.0]. Its really simple to recreate
- have a method public void handleMsg(OMElement om) and register it in
services.xml with RawXMLINOnlyMessageReceiver.
I use the ServiceClient.sendRobust(omelem) from my client side and the debug
shows the server invocation goes through fine. It fails with that exception
in the client side of response.

Can you pls clarify first if my setup is as per axis2 design? [All my
service methods are synchronous ones]. I describing my code [both server and
client side]
------------------------------------------------------------
for any method of type OMElement xxxx(OMElement) I am using
RawXMLINOutMessageReceiver in service.xml and ServiceClient.sendReceive(om)
on client side. For any method of type void xxxx(OMElement) I am using
RawXMLINOnlyMessageReceiver  in services.xml and ServiceClient.sendRobust(om)
in the client side.
----------------------------------------------------------------

Is this the right way of working? Or I am missing something? Its also
possible that this issue is fixed in future version - as I see in the
newsgrp ur mail saying the sendRobust is buggy. So not sure what to do OR if
you can give me a fix that I can try here locally it will be great.

thanks
Anamitra


On 2/15/07, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

Hi  Rishi ;
What is the Axis2 version you are using. In the meantime can you pls
help me to re-create the issue.

Thanks
Deepal

> Hi
> I have a method in my service class like
>
> public void handleReq(OMElement om)...
>
> I want the clients to call this method synchronously so that they get
> back a fault in case of an exception from the service. I added the
> messageReceiver class as
> org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver . And from the
> client [I am using ServiceClient] I call sendRobust method. I am
> getting the following error from the client after my service method
> has been invoked successfully:
>
> org.apache.axis2.AxisFault: Incoming message input stream is null
>         at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(Transport
> Utils.java:64)
>         at org.apache.axis2.description.OutInAxisOperationClient.send
> (OutInAxisO
> peration.java:349)
>         at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx
> isOperation.java:279)
>         at
> org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java :3
> 59)
>         at
> org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:3
> 39)
>
> I am bit desparate in getting this thing working and can anyone let me
> know if this is a bug in axis2 or I am using a wrong setup.
>
> --
> thanks
> Rishi


--
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
thanks
Rishi

Reply via email to