Author |
Message
|
wmqstankela |
Posted: Wed Oct 26, 2016 12:50 pm Post subject: Soap reuest using ssl 401 unauthorized response |
|
|
Voyager
Joined: 29 Feb 2016 Posts: 94
|
Hi all,
I'm trying to invoke web service using soap reuest node using ssl protocol. I set everything like this
[url] http://www.ibm.com/support/knowledgecenter/SSMKHH_10.0.0/com.ibm.etools.mft.doc/ap34020_.htm [/url] and still I've get http 401 Unauthorized response.
In soap reuest node on http transport property tab I choose SSL and provide alias of my certificate.
Also added certificate from server that I'm trying to call in my truststore file and my certificate to truststore on server.
Help please |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 27, 2016 4:19 am Post subject: Re: Soap reuest using ssl 401 unauthorized response |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
wmqstankela wrote: |
Help please |
How have you come to the conclusion this is an SSL problem? Given that you're getting a 401 back from the server rather than an SSL handshake error, it seems more likely to me that the SSL is working but your request is failing to authenticate (due to a malformed request rather than the credentials not having the needed permissions, which would yield a 403 not a 401).
What credentials are you supplying in your request and how?
What does the www-authenticate field in the response say is the problem?
What does the web server log say for the time in question? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Oct 27, 2016 4:30 am Post subject: Re: Soap reuest using ssl 401 unauthorized response |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
What does the web server log say for the time in question? |
Hmmm... which log in IIB would that be? _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 27, 2016 4:46 am Post subject: Re: Soap reuest using ssl 401 unauthorized response |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
Vitor wrote: |
What does the web server log say for the time in question? |
Hmmm... which log in IIB would that be? |
I was thinking more of the log on the web server that's hosting the URL which the OP's SoapRequest node is pointing at. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
wmqstankela |
Posted: Thu Oct 27, 2016 5:14 am Post subject: |
|
|
Voyager
Joined: 29 Feb 2016 Posts: 94
|
Thanks for answer.
I'm not saying this is SSL problem. I don't know what is cause of problem.
ImbHTTPHeaderParser::getAuthenticateHeaderData , 'No WWW-Authenticate header found in response'.
I send LDAP credentials from web server that i calling. This credentials stored in authorization-data field in xml request. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 27, 2016 5:24 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
wmqstankela wrote: |
ImbHTTPHeaderParser::getAuthenticateHeaderData , 'No WWW-Authenticate header found in response'. |
Ok, you might have mentioned that in the original post.
A WWW-Authenticate header is mandatory in the response that accompanies a 401 code. The error you quote here is IIB calling that fact out to you, because the usual course of action is to evaluate it then re-issue the request with the credential format corrected.
Your problem is two-fold:
1) The server you're calling claims it can't process the credentials you're passing and is responding with a 401;
2) It's not sending the required WWW-Authenticate header with the 401 response.
It's very likely that nothing you do in IIB will resolve this. You need to speak to the owners of the URL you're calling, ask what's going on with them (pass on my suggestion to look in their log) and try your request again when they've fixed it - at least to the point where they send the correct response to a 401. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
wmqstankela |
Posted: Thu Oct 27, 2016 5:47 am Post subject: |
|
|
Voyager
Joined: 29 Feb 2016 Posts: 94
|
Ok, I will do that. Thanks a lot Vitor! |
|
Back to top |
|
 |
|