2 Replies Latest reply on Sep 7, 2012 11:27 AM by soumyatri

    When sending the soap request , SetTaskState with the parameter of <state>error</state>, vSphere 5.1 returns a fault string of <InvalidArgumentFault xmlns="urn:vim25" xsi:type="InvalidArgument">.

    tdeepak Lurker

      Below is the corresponding SOAP request/response that is failing.

       

      POST /sdk HTTP/1.1
      SOAPAction: urn:vim25/4.0
      Content-Type: text/xml; charset=utf-8
      Cookie: vmware_soap_session="52ef27c6-e93f-ccc8-a27d-f4fd2c12fc02"; Path=/; HttpOnly;
      User-Agent: Java/1.6.0_27
      Host: deepak1-lxp:1545
      Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
      Connection: keep-alive
      Content-Length: 422
       
      <?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><SetTaskState xmlns="urn:vim25">
      <_this>task-2228</_this>
      <state>error</state></SetTaskState></soapenv:Body></soapenv:Envelope>
      ********http://www.doublecloud.org********
      HTTP/1.1 500 Internal Server Error
      Date: Mon, 21 May 2012 20:10:09 GMT
      Cache-Control: no-cache
      Connection: Keep-Alive
      Content-Type: text/xml; charset=utf-8
      Content-Length: 615
       
      <?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>
      <soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring>A specified parameter was not correct 

                   fault</faultstring><detail><InvalidArgumentFault xmlns="urn:vim25" xsi:type="InvalidArgument">

      <invalidProperty>fault</invalidProperty> </InvalidArgumentFault></detail></soapenv:Fault>

       

                     Any idea why this could be happening?