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 Request Node

Post new topic  Reply to topic
 HTTP Request Node « View previous topic :: View next topic » 
Author Message
ChrisThomas
PostPosted: Thu Jan 06, 2005 12:31 pm    Post subject: HTTP Request Node Reply with quote

Apprentice

Joined: 14 May 2003
Posts: 29
Location: Wisconsin

I noticed when using the HTTP Request Node it is requiring me to enter a Web Service URL. Well my URL is dynamic and is different based on the data coming into the flow. So I thought I could put a compute node in front of the HTTP node and set OutputLocalEnvironment.Destination.HTTP.RequestURL to be the value I want the HTTP node to use. I guess this is incorrect. Because the value I put in the Web Service URL is always used, it is not being overridden by the value in the OutputLocalEnvironment.Destination.HTTP.RequestURL.

Q:
Is this the correct field to set/use? If not what should I set?

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jan 06, 2005 1:27 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

According to the documentation
HTTPRequestNode wrote:
Configure the HTTPRequest node as follows:

1. The HTTPRequest node determines the URL for the Web service to which it sends a request. You must set one of the following three options; the node checks these in the order shown (that is, the first always overrides the second, the second overrides the third):
1. X-Original-HTTP-URL in the HTTPRequest header in the input message
2. LocalEnvironment.Destination.HTTP.RequestURL in the input message
3. The Default Web Service URL property

The first two options provide you with dynamic methods to set a URL for each input message as it passes through the message flow. If you want to use either of these options, you must include a Compute node in the message flow before the HTTPRequest node to create and initialize the required value.

The third option provides a value that is fixed for every message received in this node. You might find this useful as a default setting that is used if the other fields have not been created, or contain a null value. If either field contains a value, the setting of this property is ignored.

Ensure that the value that you set in X-Original-HTTP-URL, LocalEnvironment.Destination.HTTP.RequestURL, or in this property is valid; if it is not, the node generates an exception and the message is propagated to the failure terminal.


So that is the correct value. Are you sure that it is being propagated out of your compute node?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
dazednc
PostPosted: Wed May 25, 2005 9:45 am    Post subject: Reply with quote

Newbie

Joined: 29 Mar 2005
Posts: 2

i am also trying to dynamically set the url...
getting same problem - going to value set in http req node

did you have any luck getting this to work?

thx
michele
Back to top
View user's profile Send private message
aq
PostPosted: Thu May 26, 2005 2:48 am    Post subject: Reply with quote

Apprentice

Joined: 20 Dec 2001
Posts: 47

For me setting the URL dynamically has been working fine, I have had to put of course some dummy value in "Web Service URL" property of the "HTTP Request" node, but anyway the HTTP request have gone in URL address I have specified dynamically in OutputLocalEnvironment.Destination.HTTP.RequestURL.

You probably have checked that the URL address is truly in LocalEnvironment before the "HTTP Request" node ?
Back to top
View user's profile Send private message
mgk
PostPosted: Thu May 26, 2005 3:45 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hi, did you set the 'ComputeMode' property on the Compute Node to include the Local Envrionment?
_________________
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
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 Request Node
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.