secureOutboundMessage(context) does nothing
Hi,
i've looked in the airline example and i want to create a secure echo web service. :)
I wrote a little test client (99% the same as the saaj airline client).
But it doesn't add the security header, that's why i get this error message:
Code:
Received SOAP Fault
SOAP Fault Code :SOAP-ENV:Client
SOAP Fault String :com.sun.xml.wss.XWSSecurityException: Message does not conform to configured policy [ AuthenticationTokenPolicy(S) ]: No Security Header found; nested exception is com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.XWSSecurityException: Message does not conform to configured policy [ AuthenticationTokenPolicy(S) ]: No Security Header found
The dump shows that there is really no security header. Any idea why?
Code:
20.06.2006 13:53:14 com.sun.xml.wss.impl.filter.DumpFilter process
INFO: ==== Sending Message Start ====
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<tns:secureEchoRequest xmlns:tns="http://springws.cas.de">halloIngo</tns:secureEchoRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
==== Sending Message End ====
The securityPolicy.xml is the same as in the airline client.
Cheers,
Ingo