title: Debugging PHP SOAP call
body: <p>I am new to SOAP and dealing with a web service where it would seem no one has interfaced using PHP previously.  They have no example code excepting C# but I do have that.  eServices.asmx provides WSDL if that is the correct way to say that.</p>
  
  <p>The error that I am getting is "Server did not recognize the value of HTTP Header SOAPAction:"  with that training colon suggesting no value is passed, maybe.</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>$URL = "http://nolaflash.example.com/xxxWS/eServices.asmx";
  
  $namespace="http://www.example.com/webservices/";
  
  include("SOAP/Client.php");
  
  $soapclient = new SOAP_Client($URL);
  
  $xml_data = // valid XML is here;
  
  $res = $soapclient-&gt;UpdateData('usrname','pass',$xml_data);
  </code></pre>
  
  <p>but I have also tried:</p>
  
  <pre><code>$param = array('usrname','pass',$xml_data);
  $res = $soapclient-&gt;call('UpdateData',$param, $namespace);
  </code></pre>
  
  <p>Googling suggests that this error is a namespace issue.  The C# code I have has only one namespace reference:</p>
  
  <pre><code>[System.Web.Services.WebServiceBindingAttribute(Name="eServicesSoap", Namespace="http://www.example.com/webservices/")]
  </code></pre>
  
  <p>If I dump $soapclient to the screen prior to the function call I see that it has received data from eServices.asmx.</p>
  
  <p>I am unsure how to go about debugging this and the staffers at the service are unfamiliar with interacting with the service outside their .NET IDE.</p>
  
  <p>Any thoughts?  Advice?</p>