Author |
Message
|
shammi80 |
Posted: Fri Feb 17, 2012 5:11 pm Post subject: How to do the REST call In Message broker |
|
|
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 |
|
 |
smdavies99 |
Posted: Sat Feb 18, 2012 6:01 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
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 |
|
 |
shammi80 |
Posted: Sat Feb 18, 2012 9:14 am Post subject: |
|
|
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 |
|
 |
smdavies99 |
Posted: Sat Feb 18, 2012 9:58 am Post subject: |
|
|
 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 |
|
 |
goffinf |
Posted: Sat Feb 18, 2012 10:40 am Post subject: |
|
|
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 |
|
 |
shammi80 |
Posted: Sat Feb 18, 2012 12:57 pm Post subject: |
|
|
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 |
|
 |
rekarm01 |
Posted: Sat Feb 18, 2012 2:28 pm Post subject: |
|
|
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 |
|
 |
shammi80 |
Posted: Sat Feb 18, 2012 6:40 pm Post subject: |
|
|
Apprentice
Joined: 17 Feb 2012 Posts: 32
|
It is basic authentication by http request node.. |
|
Back to top |
|
 |
Vitor |
Posted: Sun Feb 19, 2012 6:56 am Post subject: |
|
|
 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 |
|
 |
lancelotlinc |
Posted: Mon Feb 20, 2012 6:06 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
|