The "Type" attribute does not have a "wsse" prefix. Also "PasswordText" is
incorrect, you are missing the URI that goes before it. Here is an
example...

<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";
SOAP-ENV:mustUnderstand="1"><wsse:UsernameToken
wsu:Id="UsernameToken-6d3e964d-eb4b-45bb-8f95-50bc85a4bbc3"><wsse:Username>emptyuser</wsse:Username><wsse:Password
Type="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
"/></wsse:UsernameToken></wsse:Security>

Colm.

On Mon, May 4, 2015 at 4:01 PM, DfCode <[email protected]> wrote:

> I changed yet my header adding Password Text type to password:
>
> <wsse:Security soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
>         soapenv:mustUnderstand="0"
>
> xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> "
>         xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>         <wsse:UsernameToken>
>                 <wsse:Username>joe</wsse:Username>
>                 <wsse:Password
> wsse:Type="PasswordText">joespassword</wsse:Password>
>         </wsse:UsernameToken>
> </wsse:Security>
>
> The error is the same:
>
> An error was discovered processing the <wsse:Security> header
>
> Thank you for each help....
>
>
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Ws-Security-client-newbie-tp5756790p5756959.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to