Jump to content
Registration disabled at the moment Read more... ×
dkprojektai

Soap and ws-securitypolicy in Header

Recommended Posts

Hello all, need some help. Have SAOP service which use security policy and I don't know how to go thru.

 

The message from server is "These policy alternatives can not be satisfied: ",{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SupportingTokens,{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}"

 

The correct header looks like:

<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" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:UsernameToken wsu:Id="UsernameToken-xxxxxxxxxxxxxxxxxxxx"><wsse:Username>xxxxxxxxxx</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">xxxxxxxxxxx</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">xxxxxxxxxxxx</wsse:Nonce><wsu:Created>2022-12-18T09:49:23.854Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header>

Does anybody have an working example ? Or any links to study?

 

Thanks in advance.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×