Module: WinRM::WSMV::SOAP

Included in:
Shells::Cmd, Shells::Powershell, Base, ReceiveResponseReader
Defined in:
lib/winrm/wsmv/soap.rb

Overview

WSMV SOAP namespaces mixin

Constant Summary collapse

NS_SOAP_ENV =
's'.freeze
NS_ADDRESSING =
'a'.freeze
NS_CIMBINDING =
'b'.freeze
NS_ENUM =
'n'.freeze
NS_TRANSFER =
'x'.freeze
NS_WSMAN_DMTF =
'w'.freeze
NS_WSMAN_MSFT =
'p'.freeze
NS_SCHEMA_INST =
'xsi'.freeze
NS_WIN_SHELL =
'rsp'.freeze
NS_WSMAN_FAULT =
'f'.freeze
NS_WSMAN_CONF =
'cfg'.freeze

Instance Method Summary collapse

Instance Method Details

#namespacesObject



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/winrm/wsmv/soap.rb', line 32

def namespaces
  @namespaces ||= {
    '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:#{NS_ADDRESSING}" => 'http://schemas.xmlsoap.org/ws/2004/08/addressing',
    "xmlns:#{NS_CIMBINDING}" => 'http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd',
    "xmlns:#{NS_ENUM}" => 'http://schemas.xmlsoap.org/ws/2004/09/enumeration',
    "xmlns:#{NS_TRANSFER}" => 'http://schemas.xmlsoap.org/ws/2004/09/transfer',
    "xmlns:#{NS_WSMAN_DMTF}" => 'http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd',
    "xmlns:#{NS_WSMAN_MSFT}" => 'http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd',
    "xmlns:#{NS_WIN_SHELL}" => 'http://schemas.microsoft.com/wbem/wsman/1/windows/shell',
    "xmlns:#{NS_WSMAN_CONF}" => 'http://schemas.microsoft.com/wbem/wsman/1/config'
  }
end