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 » Dynamically setting HTTPRequest URL

Post new topic  Reply to topic
 Dynamically setting HTTPRequest URL « View previous topic :: View next topic » 
Author Message
pottas
PostPosted: Thu Jun 26, 2008 12:31 am    Post subject: Dynamically setting HTTPRequest URL Reply with quote

Disciple

Joined: 27 Oct 2005
Posts: 185
Location: South Africa

Guys,
I am running WMB 6.1
I have the following scenario:
SoapInputNode --> Compute --> HTTPRequestNode --> Compute --> SoapReply

The SoapInput Node receives a composite Service that contains a number of operations. Depending on the operation requested by the Customer, I need to invoke a specific back-end service in the HTTPRequest Node. I want to dynamically set the Web Service URL in the HTTPRequest based on the service requested from the Customer. Is that possible?
Back to top
View user's profile Send private message
AkankshA
PostPosted: Thu Jun 26, 2008 1:41 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

yess...

you can set it in LocalEnvironment tree...
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
pottas
PostPosted: Thu Jun 26, 2008 1:46 am    Post subject: Reply with quote

Disciple

Joined: 27 Oct 2005
Posts: 185
Location: South Africa

OK, that's fine, thanks, but how do I then configure the HTTPRequest Node properties since the 'Web Service URL' property is mandatory. Do I put a 'dummy' value in it and then have some sort of way to dynamically re-populate it in runtime from the LocalEnvironment?
Back to top
View user's profile Send private message
AkankshA
PostPosted: Thu Jun 26, 2008 2:14 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

yes..

read infocenter here.... All this is explained much in detail

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac04595_.htm


_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
pottas
PostPosted: Thu Jun 26, 2008 2:28 am    Post subject: Reply with quote

Disciple

Joined: 27 Oct 2005
Posts: 185
Location: South Africa

Thanks for upgrading my reading and searching skills...

As quoted from the manual:
Quote:
The URL is of the format http://<address>[:port]/<function>; for example, http://localhost:7080/request. This URL can be specified statically in the HTTPRequest node parameters as a field in the message itself, or as a field in the LocalEnvironment. The data to be sent to the Web service can be the whole, or a portion of, the message tree, as specified in the HTTPRequest node properties.


...do you perhaps know the field I need to configure in the LocalEnvironment tree? The manual is not that specific (could be that I need a bit more practice in reading 101...), also: do I default the 'Web Service URL' property to something stupid/specific?
Back to top
View user's profile Send private message
mgk
PostPosted: Thu Jun 26, 2008 4:19 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hi,

The local envrionment is the correct way to do this; setting:

Code:
SET OutputLocalEnvironment.Destination.HTTP.RequestURL = 'http://ibm.com/abc/';

to the value you want.

You will need to set the WebServiceURL on the node to a dummy / fallback url that will only ever be used if the LE is not set.

The docs for the request node for 6.1 explain this better, however, note that not all of the LE overrides specified for 6.1 will work with 6.0 (as some were only added in 6.1). The 6.1 docs are at:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac04595_.htm


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
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 » Dynamically setting HTTPRequest URL
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.