title: PHP NuSOAP Web Service Error
body: <p>I have a PHP web service with NuSOAP i have a complex type then same as another post on stack see below:</p>
  <pre><code>#SERVER    
  $server-&gt;wsdl-&gt;addComplexType('User',
  'complexType','struct', 'all', '',
  array(  'id' =&gt; array('name' =&gt; 'id', 'type' =&gt; 'xsd:int'),
      'username' =&gt; array('name' =&gt; 'username','type' =&gt; 'xsd:string'),
      'password' =&gt; array('name' =&gt; 'password','type' =&gt; 'xsd:string'),
      'email' =&gt; array('name' =&gt; 'email','type' =&gt; 'xsd:string'),
      'authority' =&gt; array('name' =&gt; 'authority','type' =&gt; 'xsd:int'),
      'isActive' =&gt; array('name' =&gt; 'isActive','type' =&gt; 'xsd:int'),
      'area' =&gt; array('name' =&gt; 'area','type' =&gt; 'xsd:string')
  )
  );
  $server-&gt;register('ws_getUser',
      array('user_id' =&gt; 'xsd:integer'),
      array('user' =&gt;  'tns:User'),
      $namespace,
      &quot;$namespace#ws_getUser&quot;,
      'rpc',
      'encoded',
      'Retorna un usuario'
  );
  
  function ws_getUser($user_id){
      return new soapval('return', 'tns:User', getUser($user_id));
  }
  
  #CLIENT
  require_once('./classes/nusoaplib/nusoap.php');
  $client = new soapclient('http://localhost/api.php?wsdl');
  $result = $client-&gt;__call('ws_getUser', array('id' =&gt; '1', 'username' =&gt; 'user', 'password' =&gt; 'pass', 'email' =&gt; 'user@email.co.za', 'authority' =&gt; '1', 'isActive' =&gt; '1', 'area' =&gt; 'usa'));
  
  // Display the result
  var_dump($result);
  </code></pre>
  <p>But i keep getting errors from the service i have tried a lot of different type of changes to the complex type but keep getting the same errors.</p>
  <h1>ERROR</h1>
  <p>Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML document in C:\wamp\www\api.php:26 Stack trace: #0 C:\wamp\www\api.php(26): SoapClient-&gt;__call('ws_getUser', Array) #1 {main} thrown in C:\wamp\www\api.php on line 26</p>
  <p>Im using wamp with PHP 5.4.3 and Nusoap library 0.9.5
  If anyone can tell me what the problem is
  Thanks</p>