You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Punnoose, Roshan" <pu...@bah-systems.com> on 2006/10/10 19:29:34 UTC
[Axis2] Custom Fault
Hi,
How do I create a custom fault and send it to a client callback
endpoint? This logic is being done outside the service (so I do not have
access to the IN MessageContext), in another java class where I create a
ServiceClient and send an OMElement using the fireAndForget(...)
function. I want to be able to send back a custom SOAPFault. Is this
possible?
Roshan Punnoose
Phone: 301-497-6039
________________________________
From: Punnoose, Roshan [mailto:punnooser@bah-systems.com]
Sent: Tuesday, October 10, 2006 11:02 AM
To: axis-user@ws.apache.org
Subject: [Axis2] SetExceptionThrownOnFault
Hi,
Can I set this property in the axis2.xml for the server:
options.setExceptionToBeThrownOnSOAPFault(false);
Thanks
Roshan Punnoose
Phone: 301-497-6039
Re: [Axis2] Custom Fault
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Punnoose;
If you use fireAndForget you wont get any server side exception, if you
want o get exception then you need to use sendRobust();
Thanks
Deepal
> Hi,
>
> How do I create a custom fault and send it to a client callback
> endpoint? This logic is being done outside the service (so I do not
> have access to the IN MessageContext), in another java class where I
> create a ServiceClient and send an OMElement using the
> fireAndForget(…) function. I want to be able to send back a custom
> SOAPFault. Is this possible?
>
> **Roshan Punnoose**
>
> Phone: 301-497-6039
>
> ------------------------------------------------------------------------
>
> *From:* Punnoose, Roshan [mailto:punnooser@bah-systems.com]
> *Sent:* Tuesday, October 10, 2006 11:02 AM
> *To:* axis-user@ws.apache.org
> *Subject:* [Axis2] SetExceptionThrownOnFault
>
> Hi,
>
> Can I set this property in the axis2.xml for the server:
>
> options.setExceptionToBeThrownOnSOAPFault(false);
>
> Thanks
>
> **Roshan Punnoose**
>
> Phone: 301-497-6039
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
--
Thanks,
Deepal
................................................................
~Future is Open~
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org