title: NuSOAP + PHP , wsdl error: XML error parsing WSDL issue
body: <p>I'm trying to use nuSOAP to send a array with some data that will be use it on DB, but every time i get this "wsdl error: XML error parsing WSDL issue ... not well-formed (invalid token)" on my client.php </p>
  
  <p>Here is my  a little of my code on the server : </p>
  
  <pre><code>$server-&gt;register('cadastrar', 
   array('dados'=&gt;'tns:cadastro'),  
   array('return'=&gt;'xsd:string'),
   $namespace,
   $namespace.'#cadastrar',   
   'rpc',
   'encoded',
   ''
  ); 
  
  
  
  $server-&gt;wsdl-&gt;addComplexType('cadastrar', 'complexType', 'struct', 'all','',
  array(
     'empresa' =&gt;array ('name'=&gt;'empresa','type'=&gt;'xsd:string')
    ,'nome' =&gt;array ('name'=&gt;'nome','type'=&gt;'xsd:string')
    ,'email' =&gt;array ('name'=&gt;'email','type'=&gt;'xsd:string')
    ,'ddd' =&gt;array ('name'=&gt;'ddd','type'=&gt;'xsd:string')
    ,'tel' =&gt;array ('name'=&gt;'tel','type'=&gt;'xsd:string')  
    ,'msg' =&gt;array ('name'=&gt;'msg','type'=&gt;'xsd:string')
   )
  );
  
  
  
  function cadastrar($dados){
  
   //$objCliente = new Cliente();
   //if($objCliente)
    //$id = $objCliente-&gt;cadastroWebService($dados);
      return $dados['empresa'];
  
  }
  </code></pre>
  
  <p>and this is my code on the client :</p>
  
  <pre><code>$dados = array(
      'empresa' =&gt; $_POST['empresa'],
      'nome' =&gt; $_POST['nome'],
      'email' =&gt; $_POST['email'],
      'ddd' =&gt; $_POST['ddd'],
      'tel' =&gt; $_POST['tel'],
      'msg' =&gt; $_POST['msg']
      );
  
  //Chama o metodo call do SOAP
  
  
  $result = $client-&gt;call('cadastrar', array('cadastro'=&gt; $dados));
  </code></pre>
  
  <p>Anybody got any idea why isn't working ?</p>
  
  <p>Thanks</p>