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 » Setting HTTP Method Dynamically - WMB 8.0.0.2

Post new topic  Reply to topic
 Setting HTTP Method Dynamically - WMB 8.0.0.2 « View previous topic :: View next topic » 
Author Message
wmbv7newbie
PostPosted: Mon Apr 06, 2015 4:20 am    Post subject: Setting HTTP Method Dynamically - WMB 8.0.0.2 Reply with quote

Centurion

Joined: 13 May 2014
Posts: 121

Hi,

I have several HTTP Calls to make for a few interfaces.
The HTTP Method depends on a few fields I am getting in the request. I wanted to know if there is any way to dynamically set the method in ESQL?

I am setting the request URL using the header like -

Code:
      SET OutputLocalEnvironment.Destination.HTTP.RequestURL = API||InputLocalEnvironment.Destination.HTTP.RequestURL;

However, I am not able to set the method here (POST, PUT, GET etc.).

Can somebody let me know a simpler way to do this instead of having new message flow for every kind of method. This is cumbersome because there is actually no other difference oter than the method. I could use the same subflow for all operations if I can set the method in ESQL somehow.
Back to top
View user's profile Send private message
mgk
PostPosted: Mon Apr 06, 2015 4:32 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

You can override most things on the HTTP Request node. See the docs for the options and details:

http://www-01.ibm.com/support/knowledgecenter/SSKM8N_8.0.0/com.ibm.etools.mft.doc/ac04595_.htm

For overriding the method for example use this:

Code:
SET OutputLocalEnvironment.Destination.HTTP.RequestLine.Method = 'GET';


Kind 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
wmbv7newbie
PostPosted: Mon Apr 06, 2015 5:34 am    Post subject: Reply with quote

Centurion

Joined: 13 May 2014
Posts: 121

This was perfect! Thanks mgk

I had read through the infocentre but couldnt find the exact Name-Value pair for the fields in the tree.
Thanks 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 » Setting HTTP Method Dynamically - WMB 8.0.0.2
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.