none
Host WCF service with SSL certificate and WSSE Security Header RRS feed

  • Question

  • Hi,

    We are trying to host WCF service with SSL client certificate security & WSSE UsernameToken Security header. Following soap header is expected in request. I tried various options but no luck.

    Can some please help me with this?

    <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <s:Header>
    <a:Action s:mustUnderstand="1">http://service</a:Action>
    <a:MessageID>urn:uuid:3ed37757-02fc-4f9b-8420-2206c9af2501</a:MessageID>
    <a:ReplyTo>
    <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
    </a:ReplyTo>
    <a:To s:mustUnderstand="1">https://service.svc</a:To>
    <o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <u:Timestamp u:Id="_0">
    <u:Created>2013-08-01T07:55:10.582Z</u:Created>
    <u:Expires>2013-08-01T08:00:10.582Z</u:Expires>
    </u:Timestamp>
    <wsse:UsernameToken wsu:Id="b77a80e6-4d1d-49d7-b8f1-35fecc18caae" 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:Username>
    <!-- Removed-->
    </wsse:Username>
    <wsse:Password>
    <!-- Removed--> <!--Digested password -->
    </wsse:Password>
    <wsse:Nonce>
    <!-- Removed-->
    </wsse:Nonce>
    <wsu:Created>2012-12-01T19:45:30.540Z</wsu:Created>
    </wsse:UsernameToken>
    </o:Security>
    </s:Header>
    <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    ...
    </s:Body>
    </s:Envelope>
    

    Thanks,

    Nilesh

    Thursday, August 1, 2013 8:23 AM

Answers