4.7.5 Terminate Operation

This example shows how to use CTRL+C to terminate the command in progress.

Signal Request

 <s:Envelope 
   xmlns:s="http://www.w3.org/2003/05/soap-envelope"
   xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
   xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
   <s:Header>
     <wsa:To>
       http://localhost:80/wsman
     </wsa:To>
     <wsa:ReplyTo>
       <wsa:Address s:mustUnderstand="true">
         http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
       </wsa:Address>
     </wsa:ReplyTo>
     <wsa:Action s:mustUnderstand="true">
       http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Signal
     </wsa:Action>
     <wsman:MaxEnvelopeSize s:mustUnderstand="true">153600</wsman:MaxEnvelopeSize>
     <wsa:MessageID>uuid:23F5AAD4-9501-4070-A4F8-B216782DE466</wsa:MessageID>
     <wsman:Locale xml:lang="en-US" s:mustUnderstand="false"/>
     <wsman:ResourceURI 
       xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
       http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd
     </wsman:ResourceURI>
     <wsman:SelectorSet xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"
       xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
       <wsman:Selector Name="ShellId">
         uuid:BEF9B5F1-BC59-46C9-A48F-BF55973B9D7B
       </wsman:Selector>
     </wsman:SelectorSet>
     <wsman:OperationTimeout>PT60.000S</wsman:OperationTimeout>
   </s:Header>
   <s:Body>
     <rsp:Signal 
       xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell"
       CommandId="3cb05d74-af20-4ff1-b318-2c6cc0f99045">
       <rsp:Code>
       http://schemas.microsoft.com/wbem/wsman/1/windows/shell/signal/ctrl_c
       </rsp:Code>
     </rsp:Signal>
   </s:Body>
 </s:Envelope>
  

Signal Response

  
 <s:Envelope
   xml:lang="en-US"
   xmlns:s="http://www.w3.org/2003/05/soap-envelope"
   xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
   xmlns:wsman="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">
   <s:Header>
     <wsa:Action>
      http://schemas.microsoft.com/wbem/wsman/1/windows/shell/SignalResponse
     </wsa:Action>
     <wsa:MessageID>
       uuid:FE802FF2-82FD-4406-AEBF-8A9466F0DBFE
     </wsa:MessageID>
     <wsa:To>
       http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
     </wsa:To>
     <wsa:RelatesTo>uuid:23F5AAD4-9501-4070-A4F8-B216782DE466</wsa:RelatesTo>
   </s:Header>
   <s:Body>
     <rsp:SignalResponse
       xmlns:rsp="http://schemas.microsoft.com/wbem/wsman/1/windows/shell">
     </rsp:SignalResponse>
   </s:Body>
 </s:Envelope>