wget request for invoke method to hyver-v server


hi all,

i need change power state of virtual machine using requeststatechange method of msvm_computersystem. following xml have framed.

<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">
<s:header>
<a:to>http://host:5985/wsman</a:to>
<w:resourceuri s:mustunderstand="true">http://schemas.microsoft.com/wbem/wsman/1/wmi/root/virtualization/msvm_computersystem</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.microsoft.com/wbem/wsman/1/wmi/root/virtualization/msvm_computersystem/requeststatechange</a:action>
<a:messageid>uuid:9a989269-283b-4624-bac5-bc291f72e854</a:messageid>
</s:header>
<s:body>
<p:requeststatechange_input
  xmlns:p="http://schemas.microsoft.com/wbem/wsman/1/wmi/root/virtualization/msvm_computersystem/requeststatechange">
  <p:requestedstate>3</p:requestedstate>
</p:requeststatechange_input>
</s:body>
</s:envelope>

but getting following error:

the xml namespace uri (http://schemas.microsoft.com/wbem/wsman/1/wmi/root/virtualization/msvm_computersystem/requeststatechange) invalid. check documentation constructing namespace uri cim class.

 

can me how resolve problem.

i recommend positing question on hyper-v forum:

 

http://social.technet.microsoft.com/forums/en-us/winserverhyperv/threads


 

 


santhosh sivarajan | mcts, mcse (w2k3/w2k/nt4), mcsa (w2k3/w2k/msg), ccna, network+ houston, tx http://blogs.sivarajan.com/ http://publications.sivarajan.com/ posting provided "as is" no warranties, , confers no rights.


Windows Server  >  Hyper-V



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client