title: Consuming web service results in “Unable to handle request without a valid action parameter”
body: <p>I need to consume web services on this .NET site:</p>
  
  <p><a href="https://www.iyardiasp.com/8223third_17/webservices/ItfResidentData.asmx" rel="noreferrer">https://www.iyardiasp.com/8223third_17/webservices/ItfResidentData.asmx</a></p>
  
  <p>For preliminary consumption I use either Fiddler or curl.  Both give the same error:</p>
  
  <pre><code>&lt;faultstring&gt;Unable to handle request without a valid action parameter. Please supply a valid soap action.&lt;/faultstring&gt; 
  </code></pre>
  
  <p>My curl command:</p>
  
  <p>curl -d @GetVersionNumber.xml <a href="https://www.iyardiasp.com/8223third_17/webservices/ItfResidentData.asmx" rel="noreferrer">https://www.iyardiasp.com/8223third_17/webservices/ItfResidentData.asmx</a></p>
  
  <p>Please see file GetVersionNumber.xml below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;soap:Body&gt;
      &lt;GetVersionNumber xmlns="http://tempuri.org/YSI.Interfaces.WebServices/ItfResidentData" /&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>Adding SOAP-ENV:Header as element in soap:Envelope does not help</p>
  
  <pre><code>&lt;SOAP-ENV:Header Content-Type="text/xml" Host="www.iyardiasp.com" SOAPAction="http://tempuri.org/YSI.Interfaces.WebServices/ItfResidentData/GetVersionNumber"/&gt;
  </code></pre>
  
  <p>Adding the Soap Action as a header does not help.</p>
  
  <p>In this case the curl command is:</p>
  
  <p>curl  -H "SOAPAction: <a href="http://tempuri.org/YSI.Interfaces.WebServices/ItfResidentData/GetVersionNumber" rel="noreferrer">http://tempuri.org/YSI.Interfaces.WebServices/ItfResidentData/GetVersionNumber</a>" -d @GetVersionNumber.xml "<a href="https://www.iyardiasp.com/8223third_17/webservices/itfapplicantscreening.asmx" rel="noreferrer">https://www.iyardiasp.com/8223third_17/webservices/itfapplicantscreening.asmx</a>"</p>
  
  <p>And the response is:</p>
  
  <pre><code>&lt;faultstring&gt;Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org/YSI.Interfaces.WebServices/ItfResidentData/GetVersionNumber.&lt;/faultstring&gt;
  </code></pre>