title: php curl with soap error: unable to handle request without valid action parameter
body: <p>I am sending a soap request via curl in php, and I get this response:</p>
  
  <blockquote>
    <p>Client Unable to handle request without a valid action parameter.
    Please supply a valid soap action.</p>
  </blockquote>
  
  <p>SOAP XML:</p>
  
  <pre><code>$url="http://www.site.com/soap.asmx";
  $user = "test";
  $password = "test";
  
  $post_string = '&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:Header&gt;
      &lt;Routing xmlns="www.site.com"&gt;
        &lt;Login&gt;test&lt;/Login&gt;
        &lt;Password&gt;testy&lt;/Password&gt;
     &lt;/Routing&gt;
    &lt;/soap:Header&gt;
    &lt;soap:Body&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;';
  </code></pre>
  
  <p>CURL:</p>
  
  <pre><code> $soapme = curl_init(); 
             curl_setopt($soapme, CURLOPT_URL,            $url );   
              curl_setopt($soapme, CURLOPT_CONNECTTIMEOUT, 10); 
              curl_setopt($soapme, CURLOPT_TIMEOUT,        10); 
              curl_setopt($soapme, CURLOPT_RETURNTRANSFER, true );
              curl_setopt($soapme, CURLOPT_SSL_VERIFYPEER, false);  
              curl_setopt($soapme, CURLOPT_SSL_VERIFYHOST, false); 
              curl_setopt($soapme, CURLOPT_POST,           true ); 
              curl_setopt($soapme, CURLOPT_POSTFIELDS,    $post_string); 
              curl_setopt($soapme, CURLOPT_HTTPHEADER,     array('Content-Type: text/xml; charset=utf-8', 'Content-Length: '.strlen($post_string) )); 
              curl_setopt($soapme, CURLOPT_USERPWD, $user . ":" . $password);
              curl_setopt($soapme, curlOPT_VERBOSE, 1); 
              curl_exec($soapme);
  </code></pre>