Hi
I use vSphere SDK for Perl 4,1, All worked fine.
But after update Net-HTTP perl module from 6.03 to 6.05 for all API requests I get following
/usr/local/share/examples/vmware-vsphere-cli/performance/viperformance.pl --host XX.XX.XX.XX --server XX.XX.XX.XX --countertype net --samples 1 --instance "*" --username root --password XXXXXXXXX
SOAP request error - possibly a protocol issue: <?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>
.....
(about 600 k of xml)
How to fix this?
Thanks
Kryol
You're my hero! Seems to be the same problem as http://communities.vmware.com/message/2150600. To downgrade net-http:
Start cpan shell: perl -MCPAN -e shell
In the shell, type: install GAAS/Net-HTTP-6.03.tar.gz
But it would be nice if Vmware fixed this to work with the 6.0.5 version.
Or Net-HTTP 6.05 will be fixed to work with Vmware
This fixed my issue as well. I was trying to use the nagios plugin for vmware for the first time, which was not working, and it was not obvious what was causing the issue. During my search for an answer I wanted to verify that the SDK was working so I tried the simple connect.pl script whcih gave me the soap error you had described above. I installed the version that was suggested and viola everything works!
Thanks for the great info!
Hi,
I have the same error and i did SteeringWheel post.
But still, im getting this error, can any one help?
+ bash VM-Operations.sh -vm=labdb-automation1 -ss=Perf-ProcessV1602 -op=poweronwait [H [JOperation=poweronwait VmName=labdb-automation1 SnapShot=Perf-ProcessV1602 Powering On VM labdb-automation1 SOAP request error - possibly a protocol issue: <?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="HostSystem">host-129</obj><propSet><name>alarmActionsEnabled</name><val xsi:type="xsd:boolean">true</val></propSet><propSet><name>availableField</name><val xsi:type="ArrayOfCustomFieldDef"></val></propSet><propSet><name>capability</name><val xsi:type="HostCapability"><recursiveResourcePoolsSupported>true</recursiveResourcePoolsSupported><cpuMemoryResourceConfigurationSupported>true</cpuMemoryResourceConfigurationSupported><rebootSupported>true</rebootSupported><shutdownSupported>true</shutdownSupported><vmotionSupported>true</vmotionSupported><standbySupported>true</standbySupported><ipmiSupported>true</ipmiSupported><maxSupportedVMs>1200</maxSupportedVMs><maxRunningVMs>0</maxRunningVMs><maxSupportedVcpus>8</maxSupportedVcpus><datastorePrincipalSupported>true</datastorePrincipalSupported><sanSupported>true</sanSupported><nfsSupported>true</nfsSupported><iscsiSupported>true</iscsiSupported><vlanTaggingSupported>true</vlanTaggingSupported><nicTeamingSupported>true</nicTeamingSupported><highGuestMemSupported>true</highGuestMemSupported><mai
I installed LWP Version 5.837 from CPAN. Now it works.