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 » REST Call from Message Broker

Post new topic  Reply to topic
 REST Call from Message Broker « View previous topic :: View next topic » 
Author Message
shandilya
PostPosted: Mon Feb 27, 2012 11:38 am    Post subject: REST Call from Message Broker Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Mon Feb 27, 2012 11:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Feb 27, 2012 11:47 am    Post subject: Re: REST Call from Message Broker Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Mon Feb 27, 2012 12:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » REST Call from Message Broker
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.