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 » Http response

Post new topic  Reply to topic
 Http response « View previous topic :: View next topic » 
Author Message
shubha_s
PostPosted: Tue Mar 02, 2010 5:04 am    Post subject: Http response Reply with quote

Acolyte

Joined: 10 Mar 2009
Posts: 57

Hi,

I am calling a webservice using HTTP Request nodes. The webservice will give some response, either success or failure..
If the response from webservice is failure then the message goes to the failure terminal of the HttpRequest node and then i have redirected it to a queue..But i want to place a compute node before the MQOutput node n modify the response in case of failure and then put that message to MQOutput queue..


Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Mar 02, 2010 5:17 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Yes, you can do that.

Back to top
View user's profile Send private message
shubha_s
PostPosted: Tue Mar 02, 2010 5:43 am    Post subject: http response Reply with quote

Acolyte

Joined: 10 Mar 2009
Posts: 57

mqjeff wrote:
Yes, you can do that.



But how do i extract the description that http request node failed because of some reason. like <not authorised> or some exact reason..How do i do this??
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Mar 02, 2010 5:50 am    Post subject: Re: http response Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

shubha_s wrote:
mqjeff wrote:
Yes, you can do that.



But how do i extract the description that http request node failed because of some reason. like <not authorised> or some exact reason..How do i do this??


I'm not at all sure how you would do this.

I would do this by writing ESQL.
Back to top
View user's profile Send private message
Guaresnay
PostPosted: Tue Mar 02, 2010 7:43 am    Post subject: Reply with quote

Newbie

Joined: 10 Feb 2010
Posts: 8

Check the http header..
Back to top
View user's profile Send private message
Svp
PostPosted: Tue Mar 02, 2010 12:33 pm    Post subject: But how do i extract the description that http request node Reply with quote

Apprentice

Joined: 18 Feb 2010
Posts: 40

Hi Shuba,
You can extract the reason for the failure by accesing the Exceptionlist using ESQL.
You can get the Number and Text in the Exceptionlist tree which gives the reason for your failure.

Search for Accessing the ExceptionList tree using ESQL in Infocenter.
Back to top
View user's profile Send private message
shubha_s
PostPosted: Tue Mar 02, 2010 11:58 pm    Post subject: Re:http response Reply with quote

Acolyte

Joined: 10 Mar 2009
Posts: 57

Svp wrote:
Hi Shuba,
You can extract the reason for the failure by accesing the Exceptionlist using ESQL.
You can get the Number and Text in the Exceptionlist tree which gives the reason for your failure.

Search for Accessing the ExceptionList tree using ESQL in Infocenter.


Though i acess the exception list from ESQL, where do i update the values from which the sender will know what the exact error is.
Can any1 throw some light on this??
Back to top
View user's profile Send private message
shubha_s
PostPosted: Wed Mar 03, 2010 12:26 am    Post subject: Re:http response Reply with quote

Acolyte

Joined: 10 Mar 2009
Posts: 57

shubha_s wrote:
Svp wrote:
Hi Shuba,
You can extract the reason for the failure by accesing the Exceptionlist using ESQL.
You can get the Number and Text in the Exceptionlist tree which gives the reason for your failure.

Search for Accessing the ExceptionList tree using ESQL in Infocenter.


Though i acess the exception list from ESQL, where do i update the values from which the sender will know what the exact error is.
Can any1 throw some light on this??



I am able to access the exception tree but what do I do with the exception message.How do I construct a message and redirec to a queue.
Back to top
View user's profile Send private message
Svp
PostPosted: Wed Mar 03, 2010 6:17 am    Post subject: Reply with quote

Apprentice

Joined: 18 Feb 2010
Posts: 40

You can have a Failure Terminal--->compute node---> MQ o/p .Get the exception details using the ESQL in compute node and send it to Q.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Mar 03, 2010 6:47 am    Post subject: Re:http response Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

shubha_s wrote:
How do I construct a message and redirec to a queue.


As I said you do this with ESQL.

This is *basic* broker skills. If you can't do *this*, then you need to stop asking for help and start doing your own learning. This forum is *not* a training facility nor is it a consulting practice.

It is a learning *resource*, but you must *do* the learning. Read, search, think, try, read again.
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 » Http response
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.