Operation Contract for a SOAP message

I am trying to come up with a WCF service that would process the below SOAP request. Could someone please help me to define, what would be the signature of the Operation to be written in the service?

I have the below contracts, but that doesn't seem to work:

[ServiceContract(Namespace = "http://schemas.microsoft.com/windows/pki/2009/01/enrollment")]
public interface RST
{
    [OperationContract]
    RequestSecurityTokenResponseCollection wstep(RequestSecurityToken requestSecurityToken);
}

SOAP Message

<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" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512" xmlns:ac="http://schemas.xmlsoap.org/ws/2006/12/authorization">
<s:Header>
    <a:Action s:mustUnderstand="1">http://schemas.microsoft.com/windows/pki/2009/01/enrollment/RST/wstep</a:Action>
    <a:MessageID>urn:uuid:0d5a1441-5891-453b-becf-a2e5f6ea3749</a:MessageID>
    <a:ReplyTo>
        <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
    </a:ReplyTo>
    <a:To s:mustUnderstand="1">https://localhost/test/testService.svc</a:To>
    <wsse:Security s:mustUnderstand="1">
        <wsse:UsernameToken u:Id="uuid-cc1ccc1f-2fba-4bcf-b063-ffc0cac77917-4">
            <wsse:Username>mydomain\steve</wsse:Username>
            <wsse:Password wsse:Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">1234</wsse:Password>
        </wsse:UsernameToken>
    </wsse:Security>
</s:Header>
<s:Body>
    <wst:RequestSecurityToken>
        <wst:TokenType>http://schemas.microsoft.com/5.0.0.0/ConfigurationManager/Enrollment/DeviceEnrollmentToken</wst:TokenType>
        <wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue</wst:RequestType>
        <wsse:BinarySecurityToken ValueType="http://schemas.microsoft.com/windows/pki/2009/01/enrollment#PKCS10" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd#base64binary">MIICcTCCAV0CAQAwMDEuMCwGA1UEAxMlQjFDNDNDRDAtMTYyNC01RkJCLThFNTQtMzRDRjE3REZEM0ExADCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALdSSLbNtoKlHm0XUsmT3/9BV+BqZSqwNsUlXXCAvEdjrR4OjjWqxWv7hHqa2M5g5C9jPBQwkk9ZYtOiGgDpfAePdIx+kch2CVqdl+v3o8ZLKWsvTGQDbWaytu7X25rJOx4li6JQJN27w9dZp2WbV0+Ija+/k4E6PItzlESxXX2lCxUQMrhJBX4rdya8wSX01zN3mrpJ0XSi/c9SEQbz40p6Gl79+eT5Ktb1hJkbYceJGhqodWGlcTitjUHgnv9YcDn7dYQ15SQNTM1bxh301NMwGHoTcMXzTFBX1hknv+tOi5YS9k3zfr7TGXvGkliPSdSiUvINXpGhHw6Nd1pq1SUCAwEAAaAAMAkGBSsOAwIdBQADggEBAAICLxHcw6rt1ZA25q7amHtZUgAhXUFSgMaKLf37n+EqFQHOjVPKYIyOtPb40YTtxgPPHQp4URMhYoc41UwFBvBtFKNAflMYE+2BkEuWmJRCCtpACAjvbXKZ574FyjFr6W/YG491rHP9jPu0niGcl5ZqsQLfNala0Z00zpN43dZrTCxwDB0SsunPgcXoA6mbSsvx8uKGkyAGUSJqrI41bV3P51OwpGaqSrCrzb7E27AhNSg3nbLmTUc6IlWXLtSK/F067xDlZUdOeSx/27+yRYzkjksqS8EX+DlLXUw7C8+nz0nL1ammQ7pM4Vz4IDdrVk5iKafzZmOprSilwq/36GM=</wsse:BinarySecurityToken>
        <ac:AdditionalContext xmlns="http://schemas.xmlsoap.org/ws/2006/12/authorization">
            <ac:ContextItem Name="DeviceType">
                <ac:Value>MyDevice</ac:Value>
            </ac:ContextItem>
            <ac:ContextItem Name="ApplicationVersion">
                <ac:Value>1.23.6706.44</ac:Value>
            </ac:ContextItem>
        </ac:AdditionalContext>
    </wst:RequestSecurityToken>
</s:Body>

Answers


Need Your Help

Pass some properties to a directive in AngularJS

javascript angularjs angularjs-directive

I created a directive (itcValidationMessages) which will let me display a validations messages and I put it on the form element as an attribute like below:

IE6 Won't Display a Javascript Tooltip… how do you even begin to debug this?

javascript jquery tooltip internet-explorer-6

I am using a tooltip plugin (developed in house by someone who is on vacation) that works everywhere but in IE6. Naturally, it is being used on a site by people that use only IE6 so I need to find ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.