title: Error using NuSOAP webservice client
body: <p>I facing the issue of 'HTTP Error: Unsupported HTTP response status 404 Not Found (soapclient->response has contents of the response)' when using NuSOAP in php. here is the code for server:</p>
  
  <pre><code>&lt;?php
  require_once "nusoap.php";
  
  function getProd($category) {
      if ($category == "books") {
          return join(",", array(
              "The WordPress Anthology",
              "PHP Master: Write Cutting Edge Code",
              "Build Your Own Website the Right Way"));
      }
      else {
          return "No products listed under that category";
      }
  }
  
  $server = new soap_server();
  $server-&gt;register("getProd");
  
  $server-&gt;service($HTTP_RAW_POST_DATA);
  </code></pre>
  
  <p>and here is the code for the client request:</p>
  
  <pre><code>&lt;?php
  require_once "nusoap.php";
  $client = new nusoap_client("http://localhost/nusoap/productlist.php");
  
  $error = $client-&gt;getError();
  if ($error) {
      echo "&lt;h2&gt;Constructor error&lt;/h2&gt;&lt;pre&gt;" . $error . "&lt;/pre&gt;";
  }
  
  $result = $client-&gt;call("getProd", array("category" =&gt; "books"));
  
  if ($client-&gt;fault) {
      echo "&lt;h2&gt;Fault&lt;/h2&gt;&lt;pre&gt;";
      print_r($result);
      echo "&lt;/pre&gt;";
  }
  else {
      $error = $client-&gt;getError();
  
      if ($error) {
          echo "&lt;h2&gt;Error&lt;/h2&gt;&lt;pre&gt;" . $error . "&lt;/pre&gt;";
      }
  
      else {
          echo "&lt;h2&gt;Books&lt;/h2&gt;&lt;pre&gt;";
          echo $result;
          echo "&lt;/pre&gt;";
      }
  }
  </code></pre>