Author |
Message
|
Sam Uppu |
Posted: Mon Oct 13, 2014 4:11 pm Post subject: REST service |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
Hi All,
I have to call a REST web service with userid/passwd in HTTP headers.
I was using HTTP header node to add user-name and password. I am getting error error that the page is not called with "loginid" form variable.
Not sure where the issue is. Could you guys pls help with this |
|
Back to top |
|
 |
Sam Uppu |
Posted: Thu Oct 16, 2014 12:45 pm Post subject: |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
The service I am going to call is a handler(ashx).
Has anyone called a handler using message broker. Pls suggest how can I call this. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Oct 16, 2014 6:59 pm Post subject: Re: REST service |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Sam Uppu wrote: |
Hi All,
I have to call a REST web service with userid/passwd in HTTP headers.
I was using HTTP header node to add user-name and password. I am getting error error that the page is not called with "loginid" form variable.
Not sure where the issue is. Could you guys pls help with this |
This looks more like it expects the logindid and password to be passed as parameters on the URL or http query, than being passed on the http header.
Have you tried that?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Sam Uppu |
Posted: Fri Oct 17, 2014 2:53 pm Post subject: |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
fjb,
I tried both URL and passing query parms as below.
URL: https://xx.xx.ashx/username/password
QueryParms :https://xx.xx.ashx?username=xxx&password=yyy
:https://xx.xx.ashx?loginid=xxx&password=yyy
I still see same issue. Let me know if I am going wrong anywhere |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 21, 2014 5:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
So "loginid" as a form variable sounds like something specific to the REST endpoint you car calling.
For example, perhaps it expects you to call a login page first, receive a token, and then pass that to every other call as a field in the header or in the query.
It sounds like you really need to discuss the API that you are trying to call with the developers of this REST endpoint, or review any docs they have provided or samples or etc. |
|
Back to top |
|
 |
|