4.2.2 Modify Configuration

To modify a configuration, a Put request is used. In this example, cfg:MaxBatchItems is changed from 20 to 10.

Put 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.xmlsoap.org/ws/2005/06/
 management">
 <s:Header>
 <a:To>http://localhost:80/wsman</a:To>
 <w:ResourceURI s:mustUnderstand="true">
 wsman:microsoft.com/wsman/2005/06/Config
 </w:ResourceURI>
 <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.xmlsoap.org/ws/
 2004/09/transfer/Put</a:Action>
 <w:MaxEnvelopeSize s:mustUnderstand="true">
 51200
 </w:MaxEnvelopeSize>
 <a:MessageID>
 uuid:47F4F498-0050-4DCF-BCA1-5611732CF7DE
 </a:MessageID>
 <w:OperationTimeout>PT60.000S
 </w:OperationTimeout>
 </s:Header>
 <s:Body>
 <cfg:Config xmlns:cfg=
 "wsman:microsoft.com/wsman/2005/06/config.xsd">
 <cfg:MaxEnvelopeSizekb>50</cfg:MaxEnvelopeSizekb>
 <cfg:MaxTimeoutms>60000</cfg:MaxTimeoutms>
 <cfg:MaxBatchItems>10</cfg:MaxBatchItems>
 <cfg:SoapTraceEnabled>true</cfg:SoapTraceEnabled>
 <cfg:MaxProviderRequests>25
 </cfg:MaxProviderRequests>
 <cfg:Client>
 <cfg:NetworkDelayms>5000</cfg:NetworkDelayms>
 <cfg:URLPrefix>wsman</cfg:URLPrefix>
 <cfg:HTTP>
 <cfg:Port>80</cfg:Port>
 <cfg:Unencrypted>
 <cfg:Basic>true</cfg:Basic>
 <cfg:Digest>false</cfg:Digest>
 <cfg:Negotiate>true</cfg:Negotiate>
 </cfg:Unencrypted>
 </cfg:HTTP>
 <cfg:HTTPS>
 <cfg:Port>443</cfg:Port>
 <cfg:Basic>true</cfg:Basic>
 <cfg:Digest>true</cfg:Digest>
 <cfg:Negotiate>true</cfg:Negotiate>
 </cfg:HTTPS>
 </cfg:Client>
 <cfg:Service>
 <cfg:RootSDDL>O:NSG:BAD:P(A;;GA;;;BA)
 S:P(AU;FA;GA;;;WD)(AU;SA;GWGX;;;WD)</cfg:RootSDDL>
 <cfg:MaxConcurrentOperations>100
 </cfg:MaxConcurrentOperations>
 <cfg:EnumerationTimeoutms>60000
 </cfg:EnumerationTimeoutms>
 <cfg:MaxClientCertInfoSize>16384
 </cfg:MaxClientCertInfoSize>
 <cfg:MaxConnections>5
 </cfg:MaxConnections>
 <cfg:HTTP>
 <cfg:Unencrypted>
 <cfg:Basic>true</cfg:Basic>
 <cfg:Negotiate>true</cfg:Negotiate>
 </cfg:Unencrypted>
 </cfg:HTTP>
 <cfg:HTTPS>
 <cfg:Basic>true</cfg:Basic>
 <cfg:Negotiate>true</cfg:Negotiate>
 </cfg:HTTPS>
 </cfg:Service>
 </cfg:Config>
 </s:Body>
 </s:Envelope>
  

Put 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.xmlsoap.org/ws/2005/06/
 management">
 <s:Header>
 <a:Action s:mustUnderstand="true">
 http://schemas.xmlsoap.org/ws/
 2004/09/transfer/PutResponse</a:Action>
 <a:MessageID s:mustUnderstand="true">
 uuid:791085DF-7297-4DA4-B10C-E7AB1EE2C821
 </a:MessageID>
 <a:To>http://schemas.xmlsoap.org/ws/2004/08/
 addressing/role/anonymous</a:To>
 <a:RelatesTo s:mustUnderstand="true">
 uuid:47F4F498-0050-4DCF-BCA1-5611732CF7DE</a:RelatesTo>
 </s:Header>
 <s:Body>
 <cfg:Config xmlns:cfg=
 "wsman:microsoft.com/wsman/2005/06/config.xsd">
 <cfg:MaxEnvelopeSizekb>50</cfg:MaxEnvelopeSizekb>
 <cfg:MaxTimeoutms>60000</cfg:MaxTimeoutms>
 <cfg:MaxBatchItems>10</cfg:MaxBatchItems>
 <cfg:SoapTraceEnabled>true</cfg:SoapTraceEnabled>
 <cfg:MaxProviderRequests>25
 </cfg:MaxProviderRequests>
 <cfg:Client>
 <cfg:NetworkDelayms>5000</cfg:NetworkDelayms>
 <cfg:URLPrefix>wsman</cfg:URLPrefix>
 <cfg:HTTP>
 <cfg:Port>80</cfg:Port>
 <cfg:Unencrypted>
 <cfg:Basic>true</cfg:Basic>
 <cfg:Digest>false</cfg:Digest>
 <cfg:Negotiate>true</cfg:Negotiate>
 </cfg:Unencrypted>
 </cfg:HTTP>
 <cfg:HTTPS>
 <cfg:Port>443</cfg:Port>
 <cfg:Basic>true</cfg:Basic>
 <cfg:Digest>true</cfg:Digest>
 <cfg:Negotiate>true</cfg:Negotiate>
 </cfg:HTTPS>
 </cfg:Client>
 <cfg:Service>
 <cfg:RootSDDL>O:NSG:BAD:P(A;;GA;;;BA)S:P
 (AU;FA;GA;;;WD)
 (AU;SA;GWGX;;;WD)</cfg:RootSDDL>
 <cfg:MaxConcurrentOperations>100
 </cfg:MaxConcurrentOperations>
 <cfg:EnumerationTimeoutms>60000
 </cfg:EnumerationTimeoutms>
 <cfg:MaxClientCertInfoSize>16384
 </cfg:MaxClientCertInfoSize>
 <cfg:MaxConnections>5</cfg:MaxConnections>
 <cfg:HTTP>
 <cfg:Unencrypted>
 <cfg:Basic>true</cfg:Basic>
 <cfg:Negotiate>true</cfg:Negotiate>
 </cfg:Unencrypted>
 </cfg:HTTP>
 <cfg:HTTPS>
 <cfg:Basic>true</cfg:Basic>
 <cfg:Negotiate>true</cfg:Negotiate>
 </cfg:HTTPS>
 </cfg:Service>
 </cfg:Config>
 </s:Body>
 </s:Envelope>