|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How can I add usernametoken on DP XG45 |
« View previous topic :: View next topic » |
Author |
Message
|
acrm1029 |
Posted: Fri Jun 05, 2015 7:30 am Post subject: How can I add usernametoken on DP XG45 |
|
|
Newbie
Joined: 02 Jun 2015 Posts: 7
|
Hi! I am trying to add usernametoken configuring my web service proxy using the basic auth component on the XML Manager -> User Agent Configuration -> Basic-auth Policy, but I have not been able to do it.
How can I add the next to my request message?
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-27" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>user</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">qZF+y1oeypRa0cvHQ7Xpuw==</wsse:Nonce>
<wsu:Created>2015-06-05T15:26:09.563Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header> |
|
Back to top |
|
 |
wbisantosh |
Posted: Mon Jun 08, 2015 5:31 am Post subject: |
|
|
Apprentice
Joined: 12 Nov 2012 Posts: 47
|
Are you trying to authenticate against your Web-Service Proxy(provide a WebService) ? If yes, you must be using 'AAA' configuration for that.
If you are calling a WebService( Consuming a WebService ), Your Application Does that for you. All you need to do is add the Basic-Auth properties for the URL you are trying to call.
Thanks
Santosh |
|
Back to top |
|
 |
acrm1029 |
Posted: Tue Jun 09, 2015 5:57 am Post subject: |
|
|
Newbie
Joined: 02 Jun 2015 Posts: 7
|
wbisantosh wrote: |
Are you trying to authenticate against your Web-Service Proxy(provide a WebService) ? If yes, you must be using 'AAA' configuration for that.
If you are calling a WebService( Consuming a WebService ), Your Application Does that for you. All you need to do is add the Basic-Auth properties for the URL you are trying to call.
Thanks
Santosh |
I am calling a webservice (consuming a WS) and what I did was setting the user and password on the Basic-Auth property as you call, but the web service response is InvalidCredentials. Inquiring why that error was happening, I found DataPower was sending the password encrypted, so I tried myself configuring a test using SoapUI and set the password type on "PasswordText" and that get me clear of what I had to correct on DP.
So now the question is, how can I send password type set to text on Datapower using the Basic-auth property? |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|