title: soap giving Uncaught SoapFault exception: [HTTP] Error Fetching http headers
body: <p>I am trying to build a web-app with the help of PHP and web services. I want to connect to the database using PHP's PDO through web services. I have built the server file, the client file and the wsdl file. With various tests I found that my wsdl file has some problems because when I run other functions with other wsdl files in my server and client files, they work proper. I and working on localhost and all the files are located in the wamp/www/myApp/api/ directory (Apache 2.2.8, PHP 5.2.6). I am posting the wsdl file for your reference. Please show me where I am getting wrong and do guide me to correct the errors. Thanks.</p>
  
  <p>wsdl file:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;definitions name="MyService" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://My.Local.IP/myApp/api/my.wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"&gt;
  
  &lt;message name="LoginRequest"&gt;
      &lt;part name="dns" type="xsd:string"/&gt;
      &lt;part name="user" type="xsd:string"/&gt;
      &lt;part name="password" type="xsd:string"/&gt;
  &lt;/message&gt;
  &lt;message name="LoginResponse"&gt;
      &lt;part name="result" type="xsd:string"/&gt;
  &lt;/message&gt;
  
  &lt;portType name="Fetch_PortType"&gt;
      &lt;operation name="Login"&gt;
          &lt;input message="tns:LoginRequest"/&gt;
          &lt;output message="tns:LoginResponse"/&gt;
      &lt;/operation&gt;
  &lt;/portType&gt;
  
  &lt;binding name="MyService_Binding" type="tns:Fetch_PortType"&gt;
      &lt;soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/&gt;
      &lt;operation name="Login"&gt;
          &lt;soap:operation soapAction="http://My.Local.IP/myApp/api/Login"/&gt;
          &lt;input name="Login"&gt;
              &lt;soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"/&gt;
          &lt;/input&gt;
          &lt;output name="Login"&gt;
              &lt;soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded"/&gt;
          &lt;/output&gt;
      &lt;/operation&gt;
  &lt;/binding&gt;
  
  &lt;service name="My_Service"&gt;
      &lt;documentation&gt;WSDL File MyService&lt;/documentation&gt;
      &lt;port name="Fetch_PortType" binding="tns:MyService_Binding"&gt;
          &lt;soap:address location="http://My.Local.IP/myApp/api/server.php"/&gt;
      &lt;/port&gt;
  &lt;/service&gt;
      &lt;/definitions&gt;
  </code></pre>