title: PHP SOAP webservice with NuSOAP gives no result if WSDL is configured
body: <p>I have a php soap webservice which I've created with using NuSOAP. I use the file 'test.php' to test it in the browser as '<a href="http://www.mydowmain.com:8080/webservice/5/test.php" rel="nofollow">http://www.mydowmain.com:8080/webservice/5/test.php</a>'.</p>
  
  <p><strong>My code:</strong></p>
  
  <p><em>webservice.php</em></p>
  
  <pre><code>&lt;?php
   require_once('../lib/nusoap.php');
  
   $server = new nusoap_server();
  
   $server -&gt;configureWSDL('server', 'urn:server'); //this line causes to 'no result'
   $server -&gt;wsdl-&gt;schemaTargetNamespace = 'urn:server'; //this line causes to 'no result'
   $server -&gt; register('getData');
  
   function getData ()
   {
     $items = array(array("item1"),array("item2"));
     return $items;
  }
  
   $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
   $server -&gt;service($HTTP_RAW_POST_DATA);
  ?&gt;
  </code></pre>
  
  <p><em>test.php</em></p>
  
  <pre><code>&lt;?php
    require_once('../lib/nusoap.php');
    $client = new nusoap_client("http://www.mydowmain.com:8080/webservice/5/webservice.php?wsdl");
  
    $result = $client -&gt;call('getData');
  
    print_r($result);
  ?&gt;
  </code></pre>
  
  <p><strong>Problem:</strong></p>
  
  <p>If I remove these lines </p>
  
  <pre><code>$server -&gt;configureWSDL('server', 'urn:server'); 
  $server -&gt;wsdl-&gt;schemaTargetNamespace = 'urn:server';
  </code></pre>
  
  <p>it shows me the result fine. Otherwise I get a blank screen, get nothing. But I really need to configure the WSDL.</p>
  
  <p>How can I edit the <em>webservice.php</em> so that the WSDL will be configured and I can get the result array on the <em>test.php</em> ?</p>