[
https://issues.apache.org/jira/browse/WSS-568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15168761#comment-15168761
]
Vinod Tiwari commented on WSS-568:
----------------------------------
Actually, I dont have any idea about that. I want to know how to add
soap:header before soap:body.
I want to know what is <wsse:UsernameToken
wsu:Id="UsernameToken-95478B9C8765923A0614563215623653">" and how to
generate?
I want to know what is <wsse:Password Type="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">WKwrplT97Bf+aeLEoVc3ILXJtvQ=</wsse:Password>
and how to generate?
and i wnat to know <wsse:Nonce EncodingType="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">0UXQL0U2e0T0YnGj3tgiOA==</wsse:Nonce>
and how to generate?
so that i have asked and want to generate as below sample and if you have
any sample kind of soap wsdl please let me know:
<wsse:Security 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-95478B9C8765923A0614563215623653">
<wsse:Username>sample</wsse:Username>
<wsse:Password Type="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest
">WKwrplT97Bf+aeLEoVc3ILXJtvQ=</wsse:Password>
<wsse:Nonce EncodingType="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary
">0UXQL0U2e0T0YnGj3tgiOA==</wsse:Nonce>
<wsu:Created>2016-02-24T13:46:02.365Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
On Fri, Feb 26, 2016 at 3:23 PM, Colm O hEigeartaigh (JIRA) <[email protected]
--
Regards,
Vinod Kumar Tiwari
Mobile: +91-9971413173.
Email: [email protected] | [email protected].
> How to generate SOAP Header username token to consume SOAP WSDL
> ---------------------------------------------------------------
>
> Key: WSS-568
> URL: https://issues.apache.org/jira/browse/WSS-568
> Project: WSS4J
> Issue Type: Wish
> Components: WSS4J Core
> Environment: WSDL SOAP Java
> Reporter: Vinod Tiwari
> Assignee: Colm O hEigeartaigh
> Priority: Critical
>
> I have one external WSDL from where will extract the data from there and when
> i am hitting that wsdl getting error as The <soapenv:Header> is empty in your
> request. Username token is missing from there. You need to generate the
> username token and add it to the header.
> so we need to generate username token as below sample, my concern is how to
> generate soap:header. The password digest is comprised of the password,
> create time and nonce value as follows:
> Password_Digest = Base64 ( SHA-1 ( nonce + created + password ) )
> :
> <soapenv:Header><wsse:Security
> 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-95478B9C8765923A0614563215623653"><wsse:Username>sample</wsse:Username><wsse:Password
>
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">WKwrplT97Bf+aeLEoVc3ILXJtvQ=</wsse:Password><wsse:Nonce
>
> EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">0UXQL0U2e0T0YnGj3tgiOA==</wsse:Nonce><wsu:Created>2016-02-24T13:46:02.365Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]