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 » How to do the REST call In Message broker

Post new topic  Reply to topic
 How to do the REST call In Message broker « View previous topic :: View next topic » 
Author Message
shammi80
PostPosted: Fri Feb 17, 2012 5:11 pm    Post subject: How to do the REST call In Message broker Reply with quote

Apprentice

Joined: 17 Feb 2012
Posts: 32

Hi,

I have URL , I need to hit that URL and get the file from that.
But also I need to Authenticate before hitting that URL with username and passwd.

Any Idea ???


Thanks
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sat Feb 18, 2012 6:01 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Quote:

Any Idea ???


Yes.

As a newbie, you really do have to be a lot more specific with your questions. We are NOT here to do your job for you. We are here to help you with your quest for knowledge and understanding of Broker.

What protocol are you trying to use?
What have you tried?
Where have you looked for a solution?
Have you searched this forum?

If you see the thread I created yesterday http://www.mqseries.net/phpBB2/viewtopic.php?t=60355 you will see what I mean.

Lawyers hate closed questions. We love them.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.


Last edited by smdavies99 on Sat Feb 18, 2012 10:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
shammi80
PostPosted: Sat Feb 18, 2012 9:14 am    Post subject: Reply with quote

Apprentice

Joined: 17 Feb 2012
Posts: 32

Hi,

The Scenario is I have to call the Mutiple web Service request and in the third response I will get the Document Id and the Url path from where I have to download the file.I had did up to this.

Now my question is What I need to do to access the URL and also the before hitting the URL I need to autheticate it with username and passwd.

I have tried with Http request node but got not success.

Please advice.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sat Feb 18, 2012 9:58 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Do you have the WSDL & XSD for the services you have to call?

If you don't have them you are not going to get very far.

WebServices use SOAP.
Why didn't you think of using the SOAP Nodes.

My guess is that you have not had any formal training in Broker.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
goffinf
PostPosted: Sat Feb 18, 2012 10:40 am    Post subject: Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

Quote:

WebServices use SOAP
Why didn't you think of using the SOAP nodes


Well actually in the title of this post the OP called out REST rather than SOAP based web services.

Although admittedly the question is too muddled to offer any real advice yet.

Whilst REST is not predicated on using HTTP the majority of implementations are, so if the OP is calling a REST endpoint then most likely the HTTP nodes will be most suitable. As for WSDL, not for REST, XSD, possibly if the resource representation happens to be XML, but it could just as easily be anything else.

As yet we haven't been given any substantive clues to work with
Back to top
View user's profile Send private message
shammi80
PostPosted: Sat Feb 18, 2012 12:57 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Feb 2012
Posts: 32

I Have XSD for the incoming response and created the message set.
Please advice how to hit the that URI...

If you have any tutorial then please help with this.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Sat Feb 18, 2012 2:28 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

smdavies99 wrote:
We are here to do your job for you.

smdavies99 likely meant: "We are not here to do your job for you."

shammi80 wrote:
I need to Authenticate before hitting that URL with username and passwd.

There ought to be some sort of agreement between client-side and server-side applications, regarding how to provide the username and password as part of the request. For example, the server-side might support Basic access authorization, Digest access authentication, form-based authentication, or something else. There also ought to be some sort of specification regarding what to authenticate the username and password against.

Without knowing anything at all about specific requirements, it's difficult to offer anything other than general advice.

shammi80 wrote:
I have tried with Http request node but got not success.

Tried what, exactly? And what happened instead?
Back to top
View user's profile Send private message
shammi80
PostPosted: Sat Feb 18, 2012 6:40 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Feb 2012
Posts: 32

It is basic authentication by http request node..
Back to top
View user's profile Send private message
Vitor
PostPosted: Sun Feb 19, 2012 6:56 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

shammi80 wrote:
It is basic authentication by http request node..


It's also very similar in tone and scope to your other thread here. Both indicate you've little experience with WMB & probably no training but are jumping straight into coding web services. I don't know if this is your fault or the fault of your management but you're going to get nowhere with this method.

Not only are we not here to do your job, we're not able to provide training and you wouldn't want to implement the advice given here as your solution. Consider what would happen if your response at a code review was "I implemented it like this because a bunch of anonomous & unaccountable strangers on the Internet said to do it". Or if something happens in production and your response to a status update was "no progress on fixing it yet; I'm waiting for these strangers to work out how I implemented their advice last time & then reverse engineer what's gone wrong because I don't really understand how any of it works they just spoon fed me the code".

Read the documentation. Get some training. Understand the product. Understand our advice. Implement a solution.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Feb 20, 2012 6:06 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You can sign up for training here:

http://www-304.ibm.com/jct03001c/services/learning/ites.wss/us/en?pageType=course_description&courseCode=WM663
_________________
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 » How to do the REST call In 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.