Author |
Message
|
andy1989 |
Posted: Mon Jan 07, 2013 6:49 am Post subject: Message Body after Failure in SOAPRequest |
|
|
Novice
Joined: 07 Jan 2013 Posts: 22
|
Hello,
I have an simple flow (WS MB 7.0):
MQInput --- Compute --- SOAPRequest --- [Failure] Trace
It works fine if requested system processing message correctly.
When something goes wrong ( e.g. validation error ) , I would like to store body of this incorrect SOAP request ( for example in any log file).
But in that case 'Failure output' of SOARequest does not have message body of sent message but only SOAP Fault. Of course that behaviour is correct.
I do not have an idea how to prepare a flow to that. Should I use any pattern?
I know one of the solution is a complex flow with database usage, setting a status of messages, etc.
Is there any simple solution?
Best regards,
Andy |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Jan 07, 2013 6:54 am Post subject: Re: Message Body after Failure in SOAPRequest |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
andy1989 wrote: |
WS MB 7.0 |
What product/version is that? WMB versions have four digits: 7.0.0.6.
Where are your Trace nodes? Have you attended the WMB Developer's class? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
andy1989 |
Posted: Mon Jan 07, 2013 7:10 am Post subject: Re: Message Body after Failure in SOAPRequest |
|
|
Novice
Joined: 07 Jan 2013 Posts: 22
|
It is version 7.0.0.2
Trace nodes are placed on all outputs of SOAPRequest node (i.e. Out,Failure, Fault)
Quote: |
Have you attended the WMB Developer's class? |
Unfortunately not. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Jan 07, 2013 7:11 am Post subject: Re: Message Body after Failure in SOAPRequest |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
andy1989 wrote: |
It is version 7.0.0.2
Trace nodes are placed on all outputs of SOAPRequest node (i.e. Out,Failure, Fault)
Quote: |
Have you attended the WMB Developer's class? |
Unfortunately not. |
What is your Trace pattern? It should be something like this:
Code: |
Root:
${Root}
===
LocalEnvironment:
${LocalEnvironment}
===
ExceptionList:
${ExceptionList}
===
Envrionment
${Environment}
===
${CURRENT_TIMESTAMP}
======================= |
When do you expect to attend the training? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
andy1989 |
Posted: Mon Jan 07, 2013 7:24 am Post subject: Re: Message Body after Failure in SOAPRequest |
|
|
Novice
Joined: 07 Jan 2013 Posts: 22
|
My trace pattern is more less the same ( without ${Environment} )
At this moment training is impossible. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Jan 07, 2013 7:26 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Each Trace node should point to a unique file. Trace nodes should never share the same output file. What is the Trace output from the Fault terminal of the SOAPRequest node? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
andy1989 |
Posted: Mon Jan 07, 2013 7:39 am Post subject: Re: Message Body after Failure in SOAPRequest |
|
|
Novice
Joined: 07 Jan 2013 Posts: 22
|
I had the common Trace - is it enough reason of losing message body?
Unfortunately MB administrator already completed the work today and I will be able to check it tomorrow (I do not have permission to Deplyment) |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Jan 07, 2013 7:51 am Post subject: Re: Message Body after Failure in SOAPRequest |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
andy1989 wrote: |
I had the common Trace - is it enough reason of losing message body?
Unfortunately MB administrator already completed the work today and I will be able to check it tomorrow (I do not have permission to Deplyment) |
What we want to see is the output of the tree from the Fault terminal. We then pipe the output of the Trace node into a Compute node. From the Compute node, we construct a log statement, write the log statement. The output of Compute node, we send into a Throw node. We connect a CommonErrorHandler to your MQInput failure (edit: and/or Catch) terminals, which saves the payload in a database or backout queue. This prevents the MQInput from deadlocking on a poison message.
All these things are taught in the WMB developers class and are documented in the InfoCentre. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
andy1989 |
Posted: Wed Jan 09, 2013 4:27 am Post subject: Re: Message Body after Failure in SOAPRequest |
|
|
Novice
Joined: 07 Jan 2013 Posts: 22
|
Just now I check your solution and it works as I expected.
Thank you
Andy |
|
Back to top |
|
 |
|