I'm trying to build a Soap request in ruby and is unable to retrieve performance information from the vCenter server.
Below is the request I'm using. Can someone please tell me where I'm going wrong?
<env:Body>
<n2:QueryPerfComposite xmlns:n2="urn:vim25">
<n2:_this type="PerformanceManager">PerfMgr</n2:_this>
<n2:querySpec xsi:type="n2:PerfQuerySpec">
<n2:entity>vm-585</n2:entity>
</n2:querySpec>
</n2:QueryPerfComposite>
</env:Body>
= Response
HTTP/1.1 500 Internal Server Error
Below is the request I'm using. Can someone please tell me where I'm going wrong?
<env:Body>
<n2:QueryPerfComposite xmlns:n2="urn:vim25">
<n2:_this type="PerformanceManager">PerfMgr</n2:_this>
<n2:querySpec xsi:type="n2:PerfQuerySpec">
<n2:entity>vm-585</n2:entity>
</n2:querySpec>
</n2:QueryPerfComposite>
</env:Body>
= Response
HTTP/1.1 500 Internal Server Error