Re: [Axis2] Custom Fault
Punnoose, Roshan wrote: Hmm... would I be able to send a SOAPFault using the ServiceClient send* methods? Is that possible? You can send any xml payload using ServiceClient. signature.asc Description: OpenPGP digital signature
Re: [Axis2] Custom Fault
Title: Re: [Axis2] Custom Fault But won't that force the payload to be wrapped in a soap:Envelope tag? Not a soap:Fault? Roshan -Original Message- From: Eran Chinthaka [mailto:[EMAIL PROTECTED]] Sent: Thu 10/12/2006 7:43 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] Custom Fault Punnoose, Roshan wrote: Hmm... would I be able to send a SOAPFault using the ServiceClient send* methods? Is that possible? You can send any xml payload using ServiceClient.
Re: [Axis2] Custom Fault
Punnoose, Roshan wrote: But won't that force the payload to be wrapped in a soap:Envelope tag? Not a soap:Fault? Every SOAP message is wrapped inside SOAP envelope. The payload you give using ServiceClient will always goes inside SOAP body. SOAP fault is also going inside SOAP body. -- Chinthaka signature.asc Description: OpenPGP digital signature
RE: [Axis2] Custom Fault
Thanks a lot, just a misunderstanding on my part. :) Roshan Punnoose Phone: 301-497-6039 -Original Message- From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 9:49 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] Custom Fault Punnoose, Roshan wrote: But won't that force the payload to be wrapped in a soap:Envelope tag? Not a soap:Fault? Every SOAP message is wrapped inside SOAP envelope. The payload you give using ServiceClient will always goes inside SOAP body. SOAP fault is also going inside SOAP body. -- Chinthaka BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: [Axis2] Custom Fault
Does anyone have any ideas about this? I kind of need to get it figured out soon. Thanks! Roshan Punnoose Phone: 301-497-6039 From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 1:30 PM To: axis-user@ws.apache.org Subject: [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:[EMAIL PROTECTED] 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 BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Custom Fault
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:[EMAIL PROTECTED] *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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal ~Future is Open~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2] Custom Fault
Hmm... would I be able to send a SOAPFault using the ServiceClient send* methods? Is that possible? Because what I want to do is be able to send a SOAPFault from the server using the ServiceClient interface. Roshan Punnoose Phone: 301-497-6039 -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 12:55 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] Custom Fault 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:[EMAIL PROTECTED] *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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal ~Future is Open~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[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:[EMAIL PROTECTED] 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 BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]