Author |
Message
|
bdrummond |
Posted: Wed Nov 16, 2011 1:26 am Post subject: HTTP Authentication |
|
|
Disciple
Joined: 06 May 2004 Posts: 164
|
I am trying to call an MS Exchange Web Service but am receiving authentication errors.
I get the following HTTP Response header back:
HTTPResponseHeader
X-Original-HTTP-Status-Line:CHARACTER:HTTP/1.1 401 Unauthorized
X-Original-HTTP-Status-Code:INTEGER:401
Server:CHARACTER:Microsoft-IIS/7.5
Set-Cookie:CHARACTER:exchangecookie=58ff422d7f734bf7b551e644d50ff41c; expires=Fri, 16-Nov-2012 09:23:01 GMT; path=/; HttpOnly
WWW-Authenticate:CHARACTER:Negotiate, NTLM
X-Powered-By:CHARACTER:ASP.NET
Date:CHARACTER:Wed, 16 Nov 2011 09:23:00 GMT
Content-Length:CHARACTER:0
I had originally set up Basic Authentication in the Request but it appears that the web service requires either 'Negotiate' or 'NTLM' authentication, according to the response above.
If sending the same message via soapUI, the Authorization property in the Request Header is set to NTLM.
Is this something that can be done within MB (v7.0.0.2) and if so, can anyone point me in the direction of some help/example ESQL..? |
|
Back to top |
|
 |
missing_link |
Posted: Wed Nov 16, 2011 4:11 am Post subject: |
|
|
 Acolyte
Joined: 08 Jan 2004 Posts: 60
|
B
I assume yes if its part of the standard header. http://en.wikipedia.org/wiki/List_of_HTTP_header_fields
Wouldn't you just change the HTTPHeader.Authorisation value to whatever it is you need to provide? ie from ="Basic " to ="NLTM " or whatever its requirements are?
Haven't tried it myself so could be talking rubbish!!
ash. |
|
Back to top |
|
 |
bdrummond |
Posted: Wed Nov 16, 2011 5:36 am Post subject: |
|
|
Disciple
Joined: 06 May 2004 Posts: 164
|
Hi Ash,
I've tried setting the Authorisation header field to 'NTLM' (that's what soapUI passes) but unfiortunately I get the same error.
I've read somewhere that MB is unable to use NTLM Authentication so am now trying to find out more info on that.
Cheers. |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Wed Nov 16, 2011 6:09 am Post subject: |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
Hi,
Have you checked that broker supports NTML -authentication protocol?
--
Marko |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Wed Nov 16, 2011 6:13 am Post subject: |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
|
Back to top |
|
 |
missing_link |
Posted: Wed Nov 16, 2011 6:18 am Post subject: |
|
|
 Acolyte
Joined: 08 Jan 2004 Posts: 60
|
time to get dirty with java  |
|
Back to top |
|
 |
bdrummond |
Posted: Wed Nov 16, 2011 6:40 am Post subject: |
|
|
Disciple
Joined: 06 May 2004 Posts: 164
|
So according to mgk, Broker and NTLM are not compatible.
As for getting dirty with Java, that's not going to happen.  |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Nov 16, 2011 7:08 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
bdrummond wrote: |
So according to mgk, Broker and NTLM are not compatible.
As for getting dirty with Java, that's not going to happen.  |
Good on yer Brendan. Not everything should be solved with Java....  _________________ 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 |
|
 |
lancelotlinc |
Posted: Wed Nov 16, 2011 7:14 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
bdrummond wrote: |
So according to mgk, Broker and NTLM are not compatible.
As for getting dirty with Java, that's not going to happen.  |
These statements are incorrect. Broker is compatible with NTLM. mgk says NTLM is not supported natively. mgk does not say that Broker is incompatible with any protocol.
Java is merely a programming language. If you want to write punch cards, go right ahead. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|