|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Generate User defined SOAP Fault |
« View previous topic :: View next topic » |
Author |
Message
|
anpati1 |
Posted: Sun Jun 24, 2007 6:00 am Post subject: Generate User defined SOAP Fault |
|
|
Novice
Joined: 07 Jun 2007 Posts: 24 Location: Marlow, UK
|
Hi,
My message flow structure-exposed as a webservice- is as below:
httpInput>SOAPExtract>series of compute nodes>SOAPEnvelope>HttpReply.
If there is any error in the input data or any other application level exception, I would like to generate my own SOAPFault message instead of Broker defined. How do I do it?I want to define the SOAPFault message in ESQL.
Thanks in advance,
Anand |
|
Back to top |
|
 |
elvis_gn |
Posted: Sun Jun 24, 2007 6:19 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi anpati1,
I don't think the broker is stopping you from sending anything you want in the SOAP body, so you can code whatever you want to return in the esql including the soap fault...
Put a try-catch node right after your HTTPRequest node and catch the broker thrown error or your custom thrown error there and create the SOAP fault using a compute and reply back using another HTTPReply node..
Regards. |
|
Back to top |
|
 |
MQMD |
Posted: Sun Jun 24, 2007 9:12 pm Post subject: |
|
|
Apprentice
Joined: 03 May 2007 Posts: 45
|
Hi Elvis,
Have you send the SOAP fault from WBI MB to WPS BPEL process.I have the issue with the SAOP Fault prepared in WBIMB at the BPEL level.If you
have done it i would like to seek your help on this. |
|
Back to top |
|
 |
anpati1 |
Posted: Tue Jun 26, 2007 3:52 am Post subject: |
|
|
Novice
Joined: 07 Jun 2007 Posts: 24 Location: Marlow, UK
|
Hi,
What is the best practise when dealing with faults/exceptions generated by services used in a WS-BPEL process.
Generate application level exception as part of the outputmessage using say some exception identifier field in the output message.
or
Generate SOAP Fault message for all errors.
The only disadvantage I see in the first design is the case of unhandled exceptions, but again you have the BROKER defined default handling for errors. Kindly advise
Thanks in advance |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|