4.7.8 Delete Shell

This example shows how to delete the active Shell instance by using the wst:Delete message.

Delete 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.xmlsoap.org/ws/2004/09/transfer/Delete
     </wsa:Action>
     <wsman:MaxEnvelopeSize s:mustUnderstand="true">153600</wsman:MaxEnvelopeSize>
     <wsa:MessageID>uuid:B1C2D82D-A3BC-42A8-9A61-0664003AA97C</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:1C5CCAB0-F418-44D8-9C43-E42AA1D5150C
         </wsman:Selector>
     </wsman:SelectorSet>
     <wsman:OperationTimeout>PT60.000S</wsman:OperationTimeout>
   </s:Header>
   <s:Body></s:Body>
 </s:Envelope>

Delete 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.xmlsoap.org/ws/2004/09/transfer/DeleteResponse
     </wsa:Action>
     <wsa:MessageID  >
         uuid:4295A44D-6225-4BB5-BE51-4AE24241CE23
     </wsa:MessageID>
     <wsa:To>
         http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
     </wsa:To>
     <wsa:RelatesTo>uuid:B1C2D82D-A3BC-42A8-9A61-0664003AA97C</wsa:RelatesTo>
   </s:Header>
 <s:Body></s:Body>
 </s:Envelope>