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 » HTTP Authentication

Post new topic  Reply to topic
 HTTP Authentication « View previous topic :: View next topic » 
Author Message
bdrummond
PostPosted: Wed Nov 16, 2011 1:26 am    Post subject: HTTP Authentication Reply with quote

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
View user's profile Send private message
missing_link
PostPosted: Wed Nov 16, 2011 4:11 am    Post subject: Reply with quote

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
View user's profile Send private message
bdrummond
PostPosted: Wed Nov 16, 2011 5:36 am    Post subject: Reply with quote

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
View user's profile Send private message
marko.pitkanen
PostPosted: Wed Nov 16, 2011 6:09 am    Post subject: Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

Hi,

Have you checked that broker supports NTML -authentication protocol?

--
Marko
Back to top
View user's profile Send private message Visit poster's website
marko.pitkanen
PostPosted: Wed Nov 16, 2011 6:13 am    Post subject: Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

Hi,

Mgk gives you some advices here
http://www.mqseries.net/phpBB2/viewtopic.php?p=266623&sid=8e39f903544aaf0fbf529e961adda97b

--
Marko
Back to top
View user's profile Send private message Visit poster's website
missing_link
PostPosted: Wed Nov 16, 2011 6:18 am    Post subject: Reply with quote

Acolyte

Joined: 08 Jan 2004
Posts: 60

time to get dirty with java
Back to top
View user's profile Send private message
bdrummond
PostPosted: Wed Nov 16, 2011 6:40 am    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Wed Nov 16, 2011 7:08 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.

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
View user's profile Send private message
lancelotlinc
PostPosted: Wed Nov 16, 2011 7:14 am    Post subject: Reply with quote

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
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 » HTTP Authentication
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.