vSphere

 View Only
  • 1.  SOAP request error - possibly a protocol issue (Emergency)

    Posted Feb 03, 2015 02:25 PM

    Hi All,

             I have a script to collect all vcenter entity info. It works upto 31/Jan/2015 without any issue . From Feb 1st it didn't collect any datas. We are using "Vim::find_entity_views" for all script . Now we executed the script it returns the output (Mentioned below). Someone helps me to fix this issue.

    Error Message :-

    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="ClusterComputeResource">domain-c18744</obj></returnval><returnval><obj type="ClusterComputeResource">domain-c18129</obj></returnval><returnval><obj type="ClusterComputeResource">domain-c20464</obj></returnval><returnval><obj type="ClusterComputeResource">domain-c21343</obj></returnval><returnval><obj type="ClusterComputeResource">domain-c21874</obj></returnval><returnval><obj type="ClusterComputeResource">domain-c22361</obj></returnval><returnval><obj type="ClusterComputeResource">domain-c24448<

    Sam



  • 2.  RE: SOAP request error - possibly a protocol issue (Emergency)

    Posted Feb 03, 2015 02:44 PM

    It's likely one or more of your Perl modules that the VI Perl SDK depends on where updated.  There have been some ongoing problems with the VI Perl SDK, Crypt::SSLeay, and LWP.

    The VI Perl SDK uses Crypt::SSLeay (to get non-verify certificate handling in the SSL handshake), so they force it in.  But that lib is only maintained for backwards compatability, and LWP prefers IO::Socket::SSL (which requires you have some certificate handling against MiTM attacks, though you can pass SSL_VERIFY_NONE if you use the some client defaults in the library vs LWPs pass through ssl_opts).

    I've also had problems with LWP 6.08? + VI Perl SDK.  Some have had luck with LWP 6.03 (downgrade), others have had success with GAAS/libwww-perl-5.837.tar.gz.  I built a raw, low level Perl lib around the SDK using LWP 6.08 + IO::Socket::SSL, no issues.  So I suspect some of the protocol issues and extremely slow connection initialization issues being seen are from Crypt::SSLeay + newer LWP versions.  Problem is the VI Perl SDK VICommon.pm basically forces the use of Crypt::SSLeay.

    What's your version of LWP (libwww) installed?

    perl -MLWP -e 'print "$LWP::VERSION\n"';



  • 3.  RE: SOAP request error - possibly a protocol issue (Emergency)

    Posted Feb 03, 2015 03:32 PM

    Thanks Dude, My Version is 6.08



  • 4.  RE: SOAP request error - possibly a protocol issue (Emergency)

    Posted Feb 03, 2015 03:39 PM

    Give 5.83 a shot:

    sudo perl -MCPAN -e shell

    cpan[1]> install GAAS/libwww-perl-5.837.tar.gz



  • 5.  RE: SOAP request error - possibly a protocol issue (Emergency)

    Posted Sep 20, 2016 07:24 PM

    Thanks for posting this. It worked for me after my Linux box updated itself without warning.