|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Capture failure message on HTTPInput node. |
« View previous topic :: View next topic » |
Author |
Message
|
rajparekh08 |
Posted: Mon Sep 21, 2009 1:50 am Post subject: Capture failure message on HTTPInput node. |
|
|
Acolyte
Joined: 21 Sep 2009 Posts: 58 Location: India- Bagalore
|
Hi!,
I need to validate the incoming message in a HTTPInput node against a schema. If the message is not valid, I want to capture the Request message, add the fault code and send it back to the requester.
The problem I am facing is that, the message gets discarded. So is there any way to capture the message if a exception is generated in a HTTPInput node??and send it back to the originator along with the fault code?
thnx |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 21, 2009 4:21 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Don't post the same question multiple times!
As to your question, what does the documentation say? What have you tried? What happened? Why did you thinking posting 3 times was a good idea? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
rajparekh08 |
Posted: Wed Sep 23, 2009 9:27 pm Post subject: |
|
|
Acolyte
Joined: 21 Sep 2009 Posts: 58 Location: India- Bagalore
|
Vitor wrote: |
Don't post the same question multiple times!
As to your question, what does the documentation say? What have you tried? What happened? Why did you thinking posting 3 times was a good idea? |
This is what I got from documentation:
If you have connected the Failure terminal, you are responsible for handling the error in the fail flow. The broker creates a new ExceptionList to represent the error and this is propagated to the Failure terminal as part of the message tree, but neither the node nor the broker provide any further failure processing.
So is there a way to capture the message? |
|
Back to top |
|
 |
Luke |
Posted: Thu Sep 24, 2009 12:23 am Post subject: |
|
|
Centurion
Joined: 10 Nov 2008 Posts: 128 Location: UK
|
rajparekh08 wrote: |
So is there a way to capture the message? |
If you can't do it from the HTTPInput node (I've never tried it, so not sure if it's possible), could you remove the validation from that node and use a Validate node instead?
That way you could save the input message in Environment, Validate, catch any validation errors, retrieve message from Environment, add fault code, send back to client ... ? |
|
Back to top |
|
 |
elvis_gn |
Posted: Thu Sep 24, 2009 12:33 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi rajparekh08,
What do you mean by the message gets discarded ?
At the failure terminal you should have your request message and the exceptionlist...please clarify..
Regards. |
|
Back to top |
|
 |
rekarm01 |
Posted: Thu Sep 24, 2009 2:04 am Post subject: Re: Capture failure message on HTTPInput node. |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
rajparekh08 wrote: |
Vitor wrote: |
Don't post the same question multiple times! ... Why did you thinking posting 3 times was a good idea? |
|
Three posts, and not once to the correct forum.
rajparekh08 wrote: |
Vitor wrote: |
As to your question, what does the documentation say? |
|
rajparekh08 wrote: |
This is what I got from documentation:
If you have connected the Failure terminal, you are responsible for handling the error in the fail flow. The broker creates a new ExceptionList to represent the error and this is propagated to the Failure terminal as part of the message tree, but neither the node nor the broker provide any further failure processing. |
OK ... So, what does the documentation for the HTTPInput node say?
rajparekh08 wrote: |
Vitor wrote: |
What have you tried? What happened? |
|
How are the HTTPInput node properties set (message domain/set/type/format, parse timing, validate, failure action, etc.), to ensure that message validation errors go to the Failure terminal? Is there anything attached to the Catch terminal? What does the usertrace indicate?
rajparekh08 wrote: |
So is there a way to capture the message? |
Yes, there is. To start with, verify that the relevant HTTPInput node properties are set as needed. |
|
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
|
|
|
|