4.7.10 Reconnect Shell
This example shows how to reconnect to an active shell instance by using the rsp:Reconnect message.
Reconnect Request:
-
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"> <s:Header> <a:To>http://MANOJ-T2-X64D.stbtest.microsoft.com:5985/wsman</a:To> <a:ReplyTo> <a:Address s:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:Address> </a:ReplyTo> <a:Action s:mustUnderstand="true">http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Reconnect</a:Action> <w:MaxEnvelopeSize s:mustUnderstand="true">153600</w:MaxEnvelopeSize> <a:MessageID>uuid:099E7402-1552-464B-92DA-07DC8ED85787</a:MessageID> <w:Locale xml:lang="en-US" s:mustUnderstand="false" /> <p:DataLocale xml:lang="en-US" s:mustUnderstand="false" /> <p:SessionId s:mustUnderstand="false">uuid:015DD6F7-5631-403B-8864-70E8B1F0350D</p:SessionId> <w:ResourceURI xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd</w:ResourceURI> <w:SelectorSet xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"> <w:Selector Name="ShellId">E4BA8E35-ECB9-4932-855B-0239067918C9</w:Selector> </w:SelectorSet> <w:OperationTimeout>PT10.000S</w:OperationTimeout> </s:Header> <s:Body></s:Body> </s:Envelope>
Reconnect Response:
-
<s:Envelope xml:lang="en-US" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"> <s:Header> <a:Action>http://schemas.microsoft.com/wbem/wsman/1/windows/shell/ReconnectResponse</a:Action> <a:MessageID>uuid:E789C67C-C213-44DE-831E-7EA30F2CA3DA</a:MessageID> <a:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</a:To> <a:RelatesTo>uuid:1FE9D995-B35D-4400-A908-E3778B28A778</a:RelatesTo> </s:Header> <s:Body></s:Body> </s:Envelope>