Author |
Message
|
Harry Vermeegen |
Posted: Thu Nov 06, 2008 5:35 am Post subject: Authentication SOAP -> webservices |
|
|
Newbie
Joined: 06 Nov 2008 Posts: 4
|
Hi,
I've been looking at this forum but I can't find the answer to my problem/question.
With a SOAP environment I try to connect to a webservice to interact with. The following setup is part of my msgflow:
MQInput -> Envelope msg -> HTTPRequest -> Extract msg -> MQOutput
When I try to send a message, I get the following error:
HTTPResponseHeader
X-Original-HTTP-Status-Line = HTTP/1.1 401 Unauthorized
X-Original-HTTP-Status-Code = 401
Content-Lenght = 1656
Server = Microsoft-IIS/6.0
WWW-Authenticate = NTLM
X-Powered-By = ASP.NET
Connection = close
The webservice is using Integrated Windows Authentation and Anonymous Access is enabled. Yet I still get this message. I've read alot of information about this issue but I can't seem to solve it!
Can any of you help me out or help me in the right direction?
If you have any questions, please reply!
Regards,
Harry |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu Nov 06, 2008 7:53 am Post subject: Re: Authentication SOAP -> webservices |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
You shoult find java lib for NTLM authentication and read about this.
The case is to prepare secure token with your credential.
Your flow should look like :
MQInput -> Envelope msg -> JAVACompute to generate additional NTLM HTTP header/s-> HTTPRequest -> Extract msg -> MQOutput.
This is theoretically. I've never tested it. _________________ Marcin |
|
Back to top |
|
 |
Harry Vermeegen |
Posted: Thu Nov 06, 2008 8:18 am Post subject: |
|
|
Newbie
Joined: 06 Nov 2008 Posts: 4
|
Thank you for your reply!
I indeed found some information about the Java-code, though I was wondering if this could be done without the interference of Java.
Regards,
Harry |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu Nov 06, 2008 10:17 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Harry Vermeegen wrote: |
Thank you for your reply!
I indeed found some information about the Java-code, though I was wondering if this could be done without the interference of Java.
Regards,
Harry |
Java was only example.
You can do it with own node written in C (another example).
Feel free. _________________ Marcin |
|
Back to top |
|
 |
Harry Vermeegen |
Posted: Fri Nov 07, 2008 12:46 am Post subject: |
|
|
Newbie
Joined: 06 Nov 2008 Posts: 4
|
marcin.kasinski wrote: |
Harry Vermeegen wrote: |
Thank you for your reply!
I indeed found some information about the Java-code, though I was wondering if this could be done without the interference of Java.
Regards,
Harry |
Java was only example.
You can do it with own node written in C (another example).
Feel free. |
Thank you!
Do you have an example by any chance? I've looked in several places on the web but I couldn't find any.
Regards,
Harry |
|
Back to top |
|
 |
Michael Dag |
Posted: Fri Nov 07, 2008 1:16 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
Hi Harry (interesting nickname BTW! )
have you tried using the webservice from something like curl
I am certainly no expert when comes to WebServices, but as you indicate anonymous access is allowed, may be you are missing some fields or settings to make it work, curl could help you figuring out what is missing/wrong.
hope this helps... _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
Harry Vermeegen |
Posted: Fri Nov 07, 2008 1:31 am Post subject: |
|
|
Newbie
Joined: 06 Nov 2008 Posts: 4
|
Michael Dag wrote: |
Hi Harry (interesting nickname BTW! )
have you tried using the webservice from something like curl
I am certainly no expert when comes to WebServices, but as you indicate anonymous access is allowed, may be you are missing some fields or settings to make it work, curl could help you figuring out what is missing/wrong.
hope this helps... |
Hi Michael,
Thank you I couldn't retrieve the password of my real account so I made this one
I will have a look at your input!
Regards,
Harry |
|
Back to top |
|
 |
gunjand |
Posted: Thu Aug 06, 2009 11:19 am Post subject: |
|
|
Novice
Joined: 21 May 2009 Posts: 23
|
Hi Harry,
Did you find any solution to the problem mentioned? I am also facing similar issue. If you can provide some inputs.
Thanks,
Gunjan |
|
Back to top |
|
 |
ovasquez |
Posted: Sun Aug 09, 2009 10:03 am Post subject: |
|
|
 Centurion
Joined: 09 Dec 2005 Posts: 141 Location: Lima, Peru
|
This site have some options:
http://oaklandsoftware.com/papers/ntlm.html
About Java APIs for NTLM. some free and not free
I do review Oakland Software Java HTTP Client(not free) _________________ Oscar Vásquez Flores |
|
Back to top |
|
 |
|