Hi,
Your server configuration for the passwordType is PasswordDigest
<entry key="passwordType" value="PasswordDigest"/>
But the request soap message the passwordType is PasswordText
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
">testpass</wsse:Password>
Your client and server ws-security configuration must match with each
other.
Freeman
On 2011-11-30, at 上午1:58, Chaks wrote:
Hello Freeman,
Please find the SOAP request below,
********************************************************************************
<soapenv:Envelope xmlns:cxf="http://cxf.camel.demos.mycompany.com/"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
"><wsse:UsernameToken
wsu:Id="UsernameToken-1"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
"><wsse:Username>testuser</wsse:Username><wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
">testpass</wsse:Password><wsse:Nonce
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary
">J2zRkG+bR171T73UbNAsXg==</
wsse:Nonce><wsu:Created>2011-11-29T17:52:57.249Z</wsu:Created></
wsse:UsernameToken></wsse:Security></soapenv:Header>
<soapenv:Body>
<cxf:greet>
<name>Chaks</name>
</cxf:greet>
</soapenv:Body>
</soapenv:Envelope>
********************************************************************************
Thanks,
Chaks.
--
View this message in context:
http://camel.465427.n5.nabble.com/Problem-Configuring-WSS4JInInterceptor-Using-a-Blueprint-tp5028621p5033153.html
Sent from the Camel - Users mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com