Author |
Message
|
ydsk |
Posted: Wed Jul 12, 2006 2:30 pm Post subject: HTTPRequest node - Error terminal |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
Can someone pls explain under what circumstances a message goes through the Error terminal of a HTTPRequest node ?
Also under what circumstances does it go through the Failure terminal of the node ?
I am trying to simulate different failure scenarios thru a webservice ( a msgflow with HTTPInput and HTTPReply nodes), and I need to test all possible cases.
Appreciate any help.
PS: I read the documentation already and I am looking for more info.
Thanks in advance.
Regds,
ydsk. |
|
Back to top |
|
 |
mgk |
Posted: Thu Jul 13, 2006 12:47 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Hi,
Only an HTTP status code (that is not success) will cause the error terminal to be used in the HTTP request node.
In V5 the codes are:
1xx = ERROR terminal
2xx = OUT terminal
3xx = ERROR terminal if not redirecting (otherwise request is redirected)
4xx = ERROR terminal
5xx = ERROR terminal
In V6 it is the same for all codes except 1xx which is now handled by the node (so it will not got to the ERROR terminal)
The failure terminal is used if there is an exception whilst in the node itself, for example if the tree (body) you are sending through the request node cannot be serialized (e.g. an invalid tree shape, for example two root elements in the XML domain)).
regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
ydsk |
Posted: Thu Jul 13, 2006 10:02 am Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
Is it the same for WMB v6 too ?
We are using WMB v6 with the latest fixpac.
Appreciate any relevant information.
Thnx.
ydsk. |
|
Back to top |
|
 |
vennela |
Posted: Thu Jul 13, 2006 11:32 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
ydsk wrote: |
Is it the same for WMB v6 too ?
. |
mgk wrote: |
In V6 it is the same for all codes except 1xx which is now handled by the node (so it will not got to the ERROR terminal) |
|
|
Back to top |
|
 |
ydsk |
Posted: Thu Jul 13, 2006 2:27 pm Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
I have a msgflow that simulates a webservice ( with a HTTPInput node that accepts webservice requests and a HTTPReply node that sends the response back).
How can I simulate a timeout from a webservice ? I mean, when my first msgflow which has the HTTPRequest node calls the webservice, how can I make it timeout ? I think if I don't use a HTTPReply node at all it will timeout but I want to know other ways of simulating it.
And to which terminal of the HTTPRequest node does the msg go when it times out ? I think it is the Failure terminal...but not sure.
Thanks.
ydsk. |
|
Back to top |
|
 |
ydsk |
Posted: Fri Jul 14, 2006 6:51 am Post subject: |
|
|
Chevalier
Joined: 23 May 2005 Posts: 410
|
|
Back to top |
|
 |
|