Skip to content

Instantly share code, notes, and snippets.

@dekz
Created February 27, 2013 05:25
Show Gist options
  • Save dekz/bec973ad82a7e57bc091 to your computer and use it in GitHub Desktop.
Save dekz/bec973ad82a7e57bc091 to your computer and use it in GitHub Desktop.
Request:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>VirtualMachine</type><pathSet>network</pathSet></propSet><objectSet xsi:type="ObjectSpec"><obj type="VirtualMachine">vm-5972</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
Response (in 0.003 s)
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="VirtualMachine">vm-5972</obj><propSet><name>network</name><val xsi:type="ArrayOfManagedObjectReference"><ManagedObjectReference type="Network" xsi:type="ManagedObjectReference">network-610</ManagedObjectReference></val></propSet></returnval></RetrievePropertiesResponse>
</soapenv:Body>
</soapenv:Envelope>
NoMethodError while deserializing ManagedObjectReference (ManagedObjectReference):
<ManagedObjectReference type="Network" xsi:type="ManagedObjectReference">network-610</ManagedObjectReference>
NoMethodError while deserializing val (ManagedObjectReference):
<val xsi:type="ArrayOfManagedObjectReference">
<ManagedObjectReference type="Network" xsi:type="ManagedObjectReference">network-610</ManagedObjectReference>
</val>
NoMethodError while deserializing propSet (DynamicProperty):
<propSet>
<name>network</name>
<val xsi:type="ArrayOfManagedObjectReference">
<ManagedObjectReference type="Network" xsi:type="ManagedObjectReference">network-610</ManagedObjectReference>
</val>
</propSet>
NoMethodError while deserializing returnval (ObjectContent):
<returnval>
<obj type="VirtualMachine">vm-5972</obj>
<propSet>
<name>network</name>
<val xsi:type="ArrayOfManagedObjectReference">
<ManagedObjectReference type="Network" xsi:type="ManagedObjectReference">network-610</ManagedObjectReference>
</val>
</propSet>
</returnval>
Request:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><WaitForUpdates xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><version>10</version></WaitForUpdates></env:Body></env:Envelope>
Response (in 2.465 s)
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<WaitForUpdatesResponse xmlns="urn:vim25"><returnval><version>6</version><filterSet><filter type="PropertyFilter">session[52d24c96-69cf-7a4d-3a35-9777dde4c10a]5237563c-d790-c7ea-74b8-def1b23119da</filter><objectSet><kind>modify</kind><obj type="Task">task-21723</obj><changeSet><name>info.state</name><op>assign</op><val xsi:type="TaskInfoState">success</val></changeSet></objectSet></filterSet></returnval></WaitForUpdatesResponse>
</soapenv:Body>
</soapenv:Envelope>
RuntimeError while deserializing returnval ():
<returnval>
<version>6</version>
<filterSet>
<filter type="PropertyFilter">session[52d24c96-69cf-7a4d-3a35-9777dde4c10a]5237563c-d790-c7ea-74b8-def1b23119da</filter>
<objectSet>
<kind>modify</kind>
<obj type="Task">task-21723</obj>
<changeSet>
<name>info.state</name>
<op>assign</op>
<val xsi:type="TaskInfoState">success</val>
</changeSet>
</objectSet>
</filterSet>
</returnval>
Request:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><RetrieveProperties xmlns="urn:vim25"><_this type="PropertyCollector">propertyCollector</_this><specSet xsi:type="PropertyFilterSpec"><propSet xsi:type="PropertySpec"><type>Datacenter</type><pathSet>vmFolder</pathSet></propSet><objectSet xsi:type="ObjectSpec"><obj type="Datacenter">datacenter-2</obj></objectSet></specSet></RetrieveProperties></env:Body></env:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment