Export (0) Print
Expand All

4 Protocol Examples

The following is an example message exchange using the Workflow Instance Management Protocol to suspend a durable program instance.

A SOAP request message is sent from the client to the server:

<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <a:Action s:mustUnderstand="1">http://schemas.datacontract.org/2008/10/WorkflowServices/IWorkflowInstanceManagement/Suspend</a:Action>
    <a:MessageID>urn:uuid:8afb36d3-9a6e-47df-9313-f005242ea3ed</a:MessageID>
    <a:ReplyTo>
      <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
    </a:ReplyTo>
    <a:To s:mustUnderstand="1">net.pipe://localhost/workflowControlServiceEndpoint/2308/c50fb3bb-6c52-43b3-af57-8acb43a487b7</a:To>
  </s:Header>
  <s:Body>
    <Suspend xmlns="http://schemas.datacontract.org/2008/10/WorkflowServices">
      <instanceId>349be129-fb36-49e5-abb8-76b9831fc7b6</instanceId>
      <reason>
              Suspend the instance
      </reason>
    </Suspend>
  </s:Body>
</s:Envelope>

A SOAP response message is sent from the server to the client after successfully processing the request:

<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://www.w3.org/2003/05/soap-envelope">
  <s:Header>
    <a:Action s:mustUnderstand="1">http://schemas.datacontract.org/2008/10/WorkflowServices/IWorkflowInstanceManagement/SuspendResponse</a:Action>
    <a:RelatesTo>urn:uuid:89a7d122-208f-443b-8f16-44bfe7fb684e</a:RelatesTo>
  </s:Header>
  <s:Body>
    <SuspendResponse xmlns="http://schemas.datacontract.org/2008/10/WorkflowServices" />
  </s:Body>
</s:Envelope>
 
Show:
© 2015 Microsoft