|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
REST Call from Message Broker |
« View previous topic :: View next topic » |
Author |
Message
|
shandilya |
Posted: Mon Feb 27, 2012 11:38 am Post subject: REST Call from Message Broker |
|
|
Newbie
Joined: 27 Feb 2012 Posts: 1
|
Dear Team,
I would like to do a REST Call with the URI provided to me.
When I type in the URI in Browser and hit, it asks me a Username and password. Once credentials provided I am able to download a file. ( FYI - This file resides in their Blobitory (Directory))
How will I do that in Message Broker - a. Rest Call b. Supplying credentials
Regards, |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Feb 27, 2012 11:46 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If it's using BASIC-AUTHENTICATION, you need to construct your HTTPRequest message to include the basic authentication credentials.
If you're not using BASIC-AUTHENTICATION, then you need to call the login service, and then do the right thing to retain the token passed back to the next call to the real service. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Feb 27, 2012 11:47 am Post subject: Re: REST Call from Message Broker |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
shandilya wrote: |
Dear Team |
We're not a team.
shandilya wrote: |
I would like to do a REST Call with the URI provided to me.
How will I do that in Message Broker - a. Rest Call b. Supplying credentials |
a. By making an http request.
b. Supplying a user id and password is known as "basic authorisation".
You'll find both described in WMB's InfoCenter. You might also want to review this discussion; I notice you're using the same IP as this poster so can perhaps share notes? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon Feb 27, 2012 12:23 pm Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
1. Create a new message flow.
2. In the new mesage flow, drag an Input node (SOAPInput for example).
3. Use a Compute node to mediate between the input structure and the output structure.
4. Connect the output of the Compute node to a Request node (SOAPRequest or HTTPRequest for examples).
You can use cURL, TCP/IP Monitor, or REST client to see the traffic flowing across the wire.
All of these techniques are taught in IBM classes. If you want someone to guide you in this technology, sign up for several classes so you can have an instructor teach you how to use these tools. Some people learn by reading the InfoCentre. Others have On-the-job training. Most people combine reading the Infocentre with OJT and IBM classes. It takes several years of practical experience to become proficient with WMB. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|