Skip to content

Instantly share code, notes, and snippets.

@jkeiser
Created October 29, 2015 22:37
Show Gist options
  • Select an option

  • Save jkeiser/85b73e7281daa7a61f54 to your computer and use it in GitHub Desktop.

Select an option

Save jkeiser/85b73e7281daa7a61f54 to your computer and use it in GitHub Desktop.
Parsed Raw
===============================
ruby.xml
===============================
> Response (200) ruby.xml:9 :
{"xmlns:xsd"=>"http://www.w3.org/2001/XMLSchema",
"xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance",
"xmlns:env"=>"http://www.w3.org/2003/05/soap-envelope",
"xmlns:a"=>"http://schemas.xmlsoap.org/ws/2004/08/addressing",
"xmlns:b"=>"http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd",
"xmlns:n"=>"http://schemas.xmlsoap.org/ws/2004/09/enumeration",
"xmlns:x"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer",
"xmlns:w"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"xmlns:p"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd",
"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"xmlns:cfg"=>"http://schemas.microsoft.com/wbem/wsman/1/config",
"Header"=>
[{"To"=>["http://192.168.137.222:5985/wsman"],
"ReplyTo"=>
[{"Address"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"}]}],
"MaxEnvelopeSize"=>[{"mustUnderstand"=>"true", "content"=>"153600"}],
"MessageID"=>["uuid:C93D6806-A817-4A02-B4F1-3C6FD0670DBF"],
"Locale"=>[{"xml:lang"=>"en-US", "mustUnderstand"=>"false"}],
"DataLocale"=>[{"xml:lang"=>"en-US", "mustUnderstand"=>"false"}],
"OperationTimeout"=>["PT60S"],
"ResourceURI"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd"}],
"Action"=>
[{"mustUnderstand"=>"true",
"content"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer/Create"}],
"OptionSet"=>
[{"Option"=>
[{"Name"=>"WINRS_NOPROFILE", "content"=>"FALSE"},
{"Name"=>"WINRS_CODEPAGE", "content"=>"65001"}]}]}],
"Body"=>
[{"Shell"=>
[{"InputStreams"=>["stdin"], "OutputStreams"=>["stdout stderr"]}]}]}
-------------------------
> Request ruby.xml:15:
{"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:x"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer",
"xmlns:w"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"xmlns:p"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd",
"Header"=>
[{"Action"=>
["http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse"],
"MessageID"=>["uuid:44B4A4F1-5745-499C-BC5A-3DF2A4EF0EDF"],
"To"=>["http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"],
"RelatesTo"=>["uuid:C93D6806-A817-4A02-B4F1-3C6FD0670DBF"]}],
"Body"=>
[{"ResourceCreated"=>
[{"Address"=>["http://192.168.137.222:5985/wsman"],
"ReferenceParameters"=>
[{"ResourceURI"=>
["http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd"],
"SelectorSet"=>
[{"Selector"=>
[{"Name"=>"ShellId",
"content"=>"4D2CA1F3-5789-4A42-B6BD-F6734BBB935C"}]}]}]}],
"Shell"=>
[{"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"ShellId"=>["4D2CA1F3-5789-4A42-B6BD-F6734BBB935C"],
"ResourceUri"=>
["http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd"],
"Owner"=>["vagrant"],
"ClientIP"=>["192.168.137.126"],
"IdleTimeOut"=>["PT7200.000S"],
"InputStreams"=>["stdin"],
"OutputStreams"=>["stdout stderr"],
"ShellRunTime"=>["P0DT0H0M0S"],
"ShellInactivity"=>["P0DT0H0M0S"]}]}]}
> Response (200) ruby.xml:24 :
{"xmlns:xsd"=>"http://www.w3.org/2001/XMLSchema",
"xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance",
"xmlns:env"=>"http://www.w3.org/2003/05/soap-envelope",
"xmlns:a"=>"http://schemas.xmlsoap.org/ws/2004/08/addressing",
"xmlns:b"=>"http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd",
"xmlns:n"=>"http://schemas.xmlsoap.org/ws/2004/09/enumeration",
"xmlns:x"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer",
"xmlns:w"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"xmlns:p"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd",
"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"xmlns:cfg"=>"http://schemas.microsoft.com/wbem/wsman/1/config",
"Header"=>
[{"To"=>["http://192.168.137.222:5985/wsman"],
"ReplyTo"=>
[{"Address"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"}]}],
"MaxEnvelopeSize"=>[{"mustUnderstand"=>"true", "content"=>"153600"}],
"MessageID"=>["uuid:3FC4E975-A997-412A-9A0E-AAA0B9F6C47E"],
"Locale"=>[{"xml:lang"=>"en-US", "mustUnderstand"=>"false"}],
"DataLocale"=>[{"xml:lang"=>"en-US", "mustUnderstand"=>"false"}],
"OperationTimeout"=>["PT60S"],
"ResourceURI"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd"}],
"Action"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Command"}],
"OptionSet"=>
[{"Option"=>
[{"Name"=>"WINRS_CONSOLEMODE_STDIN", "content"=>"TRUE"},
{"Name"=>"WINRS_SKIP_CMD_SHELL", "content"=>"FALSE"}]}],
"SelectorSet"=>
[{"Selector"=>
[{"Name"=>"ShellId",
"content"=>"4D2CA1F3-5789-4A42-B6BD-F6734BBB935C"}]}]}],
"Body"=>[{"CommandLine"=>[{"Command"=>["\"exit 100\""]}]}]}
-------------------------
> Request ruby.xml:30:
{"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:x"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer",
"xmlns:w"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"xmlns:p"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd",
"Header"=>
[{"Action"=>
["http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandResponse"],
"MessageID"=>["uuid:913F7A0D-044F-4407-B72A-4FA39E2FA5B3"],
"To"=>["http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"],
"RelatesTo"=>["uuid:3FC4E975-A997-412A-9A0E-AAA0B9F6C47E"]}],
"Body"=>
[{"CommandResponse"=>
[{"CommandId"=>["571C7F38-3837-4A1C-9B91-449915B12205"]}]}]}
> Response (200) ruby.xml:39 :
{"xmlns:xsd"=>"http://www.w3.org/2001/XMLSchema",
"xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance",
"xmlns:env"=>"http://www.w3.org/2003/05/soap-envelope",
"xmlns:a"=>"http://schemas.xmlsoap.org/ws/2004/08/addressing",
"xmlns:b"=>"http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd",
"xmlns:n"=>"http://schemas.xmlsoap.org/ws/2004/09/enumeration",
"xmlns:x"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer",
"xmlns:w"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"xmlns:p"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd",
"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"xmlns:cfg"=>"http://schemas.microsoft.com/wbem/wsman/1/config",
"Header"=>
[{"To"=>["http://192.168.137.222:5985/wsman"],
"ReplyTo"=>
[{"Address"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"}]}],
"MaxEnvelopeSize"=>[{"mustUnderstand"=>"true", "content"=>"153600"}],
"MessageID"=>["uuid:75DDA4A4-0FF8-45E5-B80A-710F6FE69CD7"],
"Locale"=>[{"xml:lang"=>"en-US", "mustUnderstand"=>"false"}],
"DataLocale"=>[{"xml:lang"=>"en-US", "mustUnderstand"=>"false"}],
"OperationTimeout"=>["PT60S"],
"ResourceURI"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd"}],
"Action"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Receive"}],
"SelectorSet"=>
[{"Selector"=>
[{"Name"=>"ShellId",
"content"=>"4D2CA1F3-5789-4A42-B6BD-F6734BBB935C"}]}]}],
"Body"=>
[{"Receive"=>
[{"DesiredStream"=>
[{"CommandId"=>"571C7F38-3837-4A1C-9B91-449915B12205",
"content"=>"stdout stderr"}]}]}]}
-------------------------
> Request ruby.xml:45:
{"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:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"xmlns:p"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd",
"Header"=>
[{"Action"=>
["http://schemas.microsoft.com/wbem/wsman/1/windows/shell/ReceiveResponse"],
"MessageID"=>["uuid:3E696A54-4020-4663-90EB-7966E24AF42A"],
"To"=>["http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"],
"RelatesTo"=>["uuid:75DDA4A4-0FF8-45E5-B80A-710F6FE69CD7"]}],
"Body"=>
[{"ReceiveResponse"=>
[{"CommandState"=>
[{"CommandId"=>"571C7F38-3837-4A1C-9B91-449915B12205",
"State"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Done",
"ExitCode"=>["0"]}]}]}]}
> Response (200) ruby.xml:54 :
{"xmlns:xsd"=>"http://www.w3.org/2001/XMLSchema",
"xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance",
"xmlns:env"=>"http://www.w3.org/2003/05/soap-envelope",
"xmlns:a"=>"http://schemas.xmlsoap.org/ws/2004/08/addressing",
"xmlns:b"=>"http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd",
"xmlns:n"=>"http://schemas.xmlsoap.org/ws/2004/09/enumeration",
"xmlns:x"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer",
"xmlns:w"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"xmlns:p"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd",
"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"xmlns:cfg"=>"http://schemas.microsoft.com/wbem/wsman/1/config",
"Header"=>
[{"To"=>["http://192.168.137.222:5985/wsman"],
"ReplyTo"=>
[{"Address"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"}]}],
"MaxEnvelopeSize"=>[{"mustUnderstand"=>"true", "content"=>"153600"}],
"MessageID"=>["uuid:3E2CB84E-D816-42EB-B3E6-8434256A80F4"],
"Locale"=>[{"xml:lang"=>"en-US", "mustUnderstand"=>"false"}],
"DataLocale"=>[{"xml:lang"=>"en-US", "mustUnderstand"=>"false"}],
"OperationTimeout"=>["PT60S"],
"ResourceURI"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd"}],
"Action"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Signal"}],
"SelectorSet"=>
[{"Selector"=>
[{"Name"=>"ShellId",
"content"=>"4D2CA1F3-5789-4A42-B6BD-F6734BBB935C"}]}]}],
"Body"=>
[{"Signal"=>
[{"CommandId"=>"571C7F38-3837-4A1C-9B91-449915B12205",
"Code"=>
["http://schemas.microsoft.com/wbem/wsman/1/windows/shell/signal/terminate"]}]}]}
-------------------------
> Request ruby.xml:60:
{"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:x"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer",
"xmlns:w"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"xmlns:p"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd",
"Header"=>
[{"Action"=>
["http://schemas.microsoft.com/wbem/wsman/1/windows/shell/SignalResponse"],
"MessageID"=>["uuid:935D2587-0924-4BF1-BA00-0AFD4B6FC90B"],
"To"=>["http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"],
"RelatesTo"=>["uuid:3E2CB84E-D816-42EB-B3E6-8434256A80F4"]}],
"Body"=>[{"SignalResponse"=>[{}]}]}
> Response (200) ruby.xml:69 :
{"xmlns:xsd"=>"http://www.w3.org/2001/XMLSchema",
"xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance",
"xmlns:env"=>"http://www.w3.org/2003/05/soap-envelope",
"xmlns:a"=>"http://schemas.xmlsoap.org/ws/2004/08/addressing",
"xmlns:b"=>"http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd",
"xmlns:n"=>"http://schemas.xmlsoap.org/ws/2004/09/enumeration",
"xmlns:x"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer",
"xmlns:w"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"xmlns:p"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd",
"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"xmlns:cfg"=>"http://schemas.microsoft.com/wbem/wsman/1/config",
"Header"=>
[{"To"=>["http://192.168.137.222:5985/wsman"],
"ReplyTo"=>
[{"Address"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"}]}],
"MaxEnvelopeSize"=>[{"mustUnderstand"=>"true", "content"=>"153600"}],
"MessageID"=>["uuid:F7F0B82D-7CD4-4AC0-83AA-455AF6D1887F"],
"Locale"=>[{"xml:lang"=>"en-US", "mustUnderstand"=>"false"}],
"DataLocale"=>[{"xml:lang"=>"en-US", "mustUnderstand"=>"false"}],
"OperationTimeout"=>["PT60S"],
"ResourceURI"=>
[{"mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd"}],
"Action"=>
[{"mustUnderstand"=>"true",
"content"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer/Delete"}],
"SelectorSet"=>
[{"Selector"=>
[{"Name"=>"ShellId",
"content"=>"4D2CA1F3-5789-4A42-B6BD-F6734BBB935C"}]}]}],
"Body"=>[{}]}
-------------------------
===============================
winrx.xml
===============================
> Response (200) winrx.xml:22 :
{"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",
"Header"=>
[{"To"=>["http://192.168.137.222:5985/wsman"],
"ResourceURI"=>
[{"s:mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd"}],
"ReplyTo"=>
[{"Address"=>
[{"s:mustUnderstand"=>"true",
"content"=>
"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"}]}],
"Action"=>
[{"s:mustUnderstand"=>"true",
"content"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer/Create"}],
"MaxEnvelopeSize"=>[{"s:mustUnderstand"=>"true", "content"=>"512000"}],
"MessageID"=>["uuid:3D7E43E8-AE65-4F8C-A571-54F4F86971CF"],
"Locale"=>[{"xml:lang"=>"en-US", "s:mustUnderstand"=>"false"}],
"DataLocale"=>[{"xml:lang"=>"en-US", "s:mustUnderstand"=>"false"}],
"SessionId"=>
[{"s:mustUnderstand"=>"false",
"content"=>"uuid:330BF004-DFF1-4682-866E-E63113E331B8"}],
"OperationID"=>
[{"s:mustUnderstand"=>"false",
"content"=>"uuid:DD0D5564-622A-45A8-9012-0C5711CBEC5E"}],
"SequenceId"=>[{"s:mustUnderstand"=>"false", "content"=>"1"}],
"OptionSet"=>
[{"xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance",
"Option"=>
[{"Name"=>"WINRS_NOPROFILE", "content"=>"FALSE"},
{"Name"=>"WINRS_CODEPAGE", "content"=>"437"}]}],
"OperationTimeout"=>["PT60.000S"]}],
"Body"=>
[{"Shell"=>
[{"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"InputStreams"=>["stdin"],
"OutputStreams"=>["stdout stderr"]}]}]}
-------------------------
> Request winrx.xml:28:
{"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:x"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer",
"xmlns:w"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"xmlns:p"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd",
"Header"=>
[{"Action"=>
["http://schemas.xmlsoap.org/ws/2004/09/transfer/CreateResponse"],
"MessageID"=>["uuid:04ED0B1F-F25D-4B69-81DB-059C436DE4D4"],
"OperationID"=>
[{"s:mustUnderstand"=>"false",
"content"=>"uuid:DD0D5564-622A-45A8-9012-0C5711CBEC5E"}],
"SequenceId"=>["1"],
"To"=>["http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"],
"RelatesTo"=>["uuid:3D7E43E8-AE65-4F8C-A571-54F4F86971CF"]}],
"Body"=>
[{"ResourceCreated"=>
[{"Address"=>["http://192.168.137.222:5985/wsman"],
"ReferenceParameters"=>
[{"ResourceURI"=>
["http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd"],
"SelectorSet"=>
[{"Selector"=>
[{"Name"=>"ShellId",
"content"=>"05B5B7AF-01D8-4227-8686-8DDDAC78068F"}]}]}]}],
"Shell"=>
[{"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"ShellId"=>["05B5B7AF-01D8-4227-8686-8DDDAC78068F"],
"ResourceUri"=>
["http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd"],
"Owner"=>["WIN-8J74DI1G4SO\\vagrant"],
"ClientIP"=>["192.168.137.126"],
"IdleTimeOut"=>["PT7200.000S"],
"InputStreams"=>["stdin"],
"OutputStreams"=>["stdout stderr"],
"ShellRunTime"=>["P0DT0H0M0S"],
"ShellInactivity"=>["P0DT0H0M0S"]}]}]}
> Response (200) winrx.xml:35 :
{"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",
"Header"=>
[{"To"=>["http://192.168.137.222:5985/wsman"],
"ResourceURI"=>
[{"s:mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd"}],
"ReplyTo"=>
[{"Address"=>
[{"s:mustUnderstand"=>"true",
"content"=>
"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"}]}],
"Action"=>
[{"s:mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Command"}],
"MaxEnvelopeSize"=>[{"s:mustUnderstand"=>"true", "content"=>"512000"}],
"MessageID"=>["uuid:00D17913-A12E-427A-82EC-B585706196B2"],
"Locale"=>[{"xml:lang"=>"en-US", "s:mustUnderstand"=>"false"}],
"DataLocale"=>[{"xml:lang"=>"en-US", "s:mustUnderstand"=>"false"}],
"SessionId"=>
[{"s:mustUnderstand"=>"false",
"content"=>"uuid:330BF004-DFF1-4682-866E-E63113E331B8"}],
"OperationID"=>
[{"s:mustUnderstand"=>"false",
"content"=>"uuid:19B634FE-616C-47DD-8AF0-023E7B77235F"}],
"SequenceId"=>[{"s:mustUnderstand"=>"false", "content"=>"1"}],
"SelectorSet"=>
[{"Selector"=>
[{"Name"=>"ShellId",
"content"=>"05B5B7AF-01D8-4227-8686-8DDDAC78068F"}]}],
"OptionSet"=>
[{"xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance",
"Option"=>[{"Name"=>"WINRS_CONSOLEMODE_STDIN", "content"=>"TRUE"}]}],
"OperationTimeout"=>["PT60.000S"]}],
"Body"=>
[{"CommandLine"=>
[{"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"Command"=>["\"exit 100\""]}]}]}
-------------------------
> Request winrx.xml:41:
{"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:x"=>"http://schemas.xmlsoap.org/ws/2004/09/transfer",
"xmlns:w"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"xmlns:p"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd",
"Header"=>
[{"Action"=>
["http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandResponse"],
"MessageID"=>["uuid:8279533E-9BCB-433A-B9D9-AA02A24D151F"],
"OperationID"=>
[{"s:mustUnderstand"=>"false",
"content"=>"uuid:19B634FE-616C-47DD-8AF0-023E7B77235F"}],
"SequenceId"=>["1"],
"To"=>["http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"],
"RelatesTo"=>["uuid:00D17913-A12E-427A-82EC-B585706196B2"]}],
"Body"=>
[{"CommandResponse"=>
[{"CommandId"=>["CD31D893-EC4A-4CC9-9817-2BCCAB7F67CF"]}]}]}
> Response (200) winrx.xml:48 :
{"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",
"Header"=>
[{"To"=>["http://192.168.137.222:5985/wsman"],
"ReplyTo"=>
[{"Address"=>
[{"s:mustUnderstand"=>"true",
"content"=>
"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"}]}],
"Action"=>
[{"s:mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/Receive"}],
"MaxEnvelopeSize"=>[{"s:mustUnderstand"=>"true", "content"=>"512000"}],
"MessageID"=>["uuid:B4A2DDD6-F455-4116-88F8-08C1A12BCE69"],
"Locale"=>[{"xml:lang"=>"en-US", "s:mustUnderstand"=>"false"}],
"DataLocale"=>[{"xml:lang"=>"en-US", "s:mustUnderstand"=>"false"}],
"SessionId"=>
[{"s:mustUnderstand"=>"false",
"content"=>"uuid:330BF004-DFF1-4682-866E-E63113E331B8"}],
"OperationID"=>
[{"s:mustUnderstand"=>"false",
"content"=>"uuid:A030EC4A-2191-45D5-B7BA-69D4B238E501"}],
"SequenceId"=>[{"s:mustUnderstand"=>"false", "content"=>"1"}],
"ResourceURI"=>
[{"xmlns:w"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/cmd"}],
"SelectorSet"=>
[{"xmlns:w"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"xmlns"=>"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd",
"Selector"=>
[{"Name"=>"ShellId",
"content"=>"05B5B7AF-01D8-4227-8686-8DDDAC78068F"}]}],
"OperationTimeout"=>["PT60.000S"]}],
"Body"=>
[{"Receive"=>
[{"xmlns:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"SequenceId"=>"0",
"DesiredStream"=>
[{"CommandId"=>"CD31D893-EC4A-4CC9-9817-2BCCAB7F67CF",
"content"=>"stdout stderr"}]}]}]}
-------------------------
> Request winrx.xml:54:
{"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:rsp"=>"http://schemas.microsoft.com/wbem/wsman/1/windows/shell",
"xmlns:p"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd",
"Header"=>
[{"Action"=>
["http://schemas.microsoft.com/wbem/wsman/1/windows/shell/ReceiveResponse"],
"MessageID"=>["uuid:EB5794DC-A9E5-40DC-B5B4-75A95FAE8A50"],
"To"=>["http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"],
"OperationID"=>
[{"s:mustUnderstand"=>"false",
"content"=>"uuid:A030EC4A-2191-45D5-B7BA-69D4B238E501"}],
"SequenceId"=>["1"],
"RelatesTo"=>["uuid:B4A2DDD6-F455-4116-88F8-08C1A12BCE69"]}],
"Body"=>
[{"ReceiveResponse"=>
[{"Stream"=>
[{"Name"=>"stdout",
"CommandId"=>"CD31D893-EC4A-4CC9-9817-2BCCAB7F67CF",
"End"=>"true"},
{"Name"=>"stderr",
"CommandId"=>"CD31D893-EC4A-4CC9-9817-2BCCAB7F67CF",
"End"=>"true"}],
"CommandState"=>
[{"CommandId"=>"CD31D893-EC4A-4CC9-9817-2BCCAB7F67CF",
"State"=>
"http://schemas.microsoft.com/wbem/wsman/1/windows/shell/CommandState/Done",
"ExitCode"=>["100"]}]}]}]}
> Response (204) winrx.xml:61 :
{"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",
"Header"=>
[{"To"=>["http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"],
"ResourceURI"=>
[{"s:mustUnderstand"=>"true",
"content"=>
"http://schemas.microsoft.com/wbem/wsman/1/wsman/FullDuplex"}],
"Action"=>
[{"s:mustUnderstand"=>"true",
"content"=>"http://schemas.microsoft.com/wbem/wsman/1/wsman/End"}],
"MessageID"=>["uuid:590B5434-6A8D-4E49-8A6B-23B68718E0E4"],
"OperationID"=>["uuid:A030EC4A-2191-45D5-B7BA-69D4B238E501"]}],
"Body"=>[{}]}
-------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment