Hi. Thank you. What must I set?

My client Request Header must look like this:

<soapenv:Header>
    <wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc";>
      <wsc:SecurityContextToken>
        <wsc:Identifier></wsc:Identifier>
      </wsc:SecurityContextToken>
    </wsse:Security>
  </soapenv:Header>

My Policy on WSDL is:
<wsp:Policy xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";
                xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
                xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";
        
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
                wsu:Id="AuthSecurityPolicy">
                <wsp:ExactlyOne>
                        <wsp:All>
                                <sp:TransportBinding>
                                        <wsp:Policy>
                                                <sp:TransportToken>
                                                        <wsp:Policy>
                                                                <sp:HttpsToken 
RequireClientCertificate="false" />
                                                        </wsp:Policy>
                                                </sp:TransportToken>
                                        </wsp:Policy>
                                </sp:TransportBinding>
                                <sp:SupportingTokens>
                                        <wsp:Policy>
                                                <sp:SecureConversationToken
                                                
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient";>
                                                        <sp:Issuer>
                                                                <wsa:Address>
                                                                        Address 
to STS
                                                                </wsa:Address>
                                                        </sp:Issuer>
                                                </sp:SecureConversationToken>
                                        </wsp:Policy>
                                </sp:SupportingTokens>
                        </wsp:All>
                </wsp:ExactlyOne>
        </wsp:Policy>

WS-Security is new for me!



--
View this message in context: 
http://cxf.547215.n5.nabble.com/NullPointerException-on-Policy-merge-tp5740289p5740355.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to