4.2.1 Retrieving Configuration
This section illustrates an example of the entire configuration of Web Services Management Protocol Extensions for Windows Vista accessed by using Get.
Get 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> <wsman:ResourceURI s:mustUnderstand="true"> http://schemas.microsoft.com/wbem/wsman/1/config </wsman:ResourceURI> <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/Get </wsa:Action> <wsman:MaxEnvelopeSize s:mustUnderstand="true"> 51200 </wsman:MaxEnvelopeSize> <wsa:MessageID> uuid:613DCD71-95AF-4ED5-86E2-1D6AB44ECE66 </wsa:MessageID> <wsman:OperationTimeout>PT60.000S</wsman:OperationTimeout> </s:Header> <s:Body/> </s:Envelope>
Get 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 s:mustUnderstand="true"> http://schemas.xmlsoap.org/ws/2004/09/transfer/GetResponse </wsa:Action> <wsa:MessageID s:mustUnderstand="true"> uuid:26ED5937-8016-41D5-9157-C9AD5B1D3C37 </wsa:MessageID> <wsa:To> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:To> <wsa:RelatesTo s:mustUnderstand="true"> uuid:613DCD71-95AF-4ED5-86E2-1D6AB44ECE66 </wsa:RelatesTo> </s:Header> <s:Body> <cfg:Config xmlns:cfg="http://schemas.microsoft.com/wbem/ wsman/1/config"> <cfg:MaxEnvelopeSizekb>50</cfg:MaxEnvelopeSizekb> <cfg:MaxTimeoutms>60000</cfg:MaxTimeoutms> <cfg:MaxBatchItems>20</cfg:MaxBatchItems> <cfg:MaxProviderRequests>25</cfg:MaxProviderRequests> <cfg:Client> <cfg:NetworkDelayms>5000</cfg:NetworkDelayms> <cfg:URLPrefix>wsman</cfg:URLPrefix> <cfg:AllowUnencrypted>false</cfg:AllowUnencrypted> <cfg:Auth> <cfg:Basic>false</cfg:Basic> <cfg:Digest>true</cfg:Digest> <cfg:Kerberos>true</cfg:Kerberos> <cfg:Negotiate>true</cfg:Negotiate> <cfg:Certificate>true</cfg:Certificate> </cfg:Auth> <cfg:DefaultPorts> <cfg:HTTP>80</cfg:HTTP> <cfg:HTTPS>443</cfg:HTTPS> </cfg:DefaultPorts> <cfg:TrustedHosts></cfg:TrustedHosts> </cfg:Client> <cfg:Service> <cfg:RootSDDL> O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;ER)S:P(AU;FA;GA;;;WD)(AU;S A; GWGX;;;WD) </cfg:RootSDDL> <cfg:MaxConcurrentOperations> 100 </cfg:MaxConcurrentOperations> <cfg:EnumerationTimeoutms> 60000 </cfg:EnumerationTimeoutms> <cfg:MaxConnections>5</cfg:MaxConnections> <cfg:AllowUnencrypted>false</cfg:AllowUnencrypted> <cfg:Auth> <cfg:Basic>false</cfg:Basic> <cfg:Kerberos>true</cfg:Kerberos> <cfg:Negotiate>true</cfg:Negotiate> </cfg:Auth> <cfg:DefaultPorts> <cfg:HTTP>80</cfg:HTTP> <cfg:HTTPS>443</cfg:HTTPS> </cfg:DefaultPorts> <cfg:IPv4Filter>*</cfg:IPv4Filter> <cfg:IPv6Filter>*</cfg:IPv6Filter> </cfg:Service> <cfg:Winrs> <cfg:AllowRemoteShellAccess>true</cfg:AllowRemoteShellAccess> <cfg:IdleTimeout>900000</cfg:IdleTimeout> <cfg:MaxConcurrentUsers>5</cfg:MaxConcurrentUsers> <cfg:MaxShellRunTime>28800000</cfg:MaxShellRunTime> <cfg:MaxProcessesPerShell>5</cfg:MaxProcessesPerShell> <cfg:MaxMemoryPerShellMB>80</cfg:MaxMemoryPerShellMB> <cfg:MaxShellsPerUser>2</cfg:MaxShellsPerUser> </cfg:Winrs> </cfg:Config> </s:Body> </s:Envelope>