ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Message Body after Failure in SOAPRequest

Post new topic  Reply to topic
 Message Body after Failure in SOAPRequest « View previous topic :: View next topic » 
Author Message
andy1989
PostPosted: Mon Jan 07, 2013 6:49 am    Post subject: Message Body after Failure in SOAPRequest Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jan 07, 2013 6:54 am    Post subject: Re: Message Body after Failure in SOAPRequest Reply with quote

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
View user's profile Send private message Send e-mail
andy1989
PostPosted: Mon Jan 07, 2013 7:10 am    Post subject: Re: Message Body after Failure in SOAPRequest Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jan 07, 2013 7:11 am    Post subject: Re: Message Body after Failure in SOAPRequest Reply with quote

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
View user's profile Send private message Send e-mail
andy1989
PostPosted: Mon Jan 07, 2013 7:24 am    Post subject: Re: Message Body after Failure in SOAPRequest Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jan 07, 2013 7:26 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
andy1989
PostPosted: Mon Jan 07, 2013 7:39 am    Post subject: Re: Message Body after Failure in SOAPRequest Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jan 07, 2013 7:51 am    Post subject: Re: Message Body after Failure in SOAPRequest Reply with quote

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
View user's profile Send private message Send e-mail
andy1989
PostPosted: Wed Jan 09, 2013 4:27 am    Post subject: Re: Message Body after Failure in SOAPRequest Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Message Body after Failure in SOAPRequest
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.