title: how to deal with array ComplexType in NuSoap?
body: <p>currently i am using PHP Version 5.4.16, and NuSoap 0.95, i have try this example :
  <a href="http://webcache.googleusercontent.com/search?q=cache%3arJV7zjQidHQJ%3awww.nonplus.net/geek/000752.php%20create%20complex%20type%20in%20xml%20using%20nusoap%20web%20services%20with%20nested%20array%20in&amp;client=firefox-a&amp;hs=L5i&amp;hl=en&amp;gl=in&amp;strip=0" rel="nofollow">here</a></p>
  
  <p>which shown the server code like this ;</p>
  
  <pre><code>$server-&gt;wsdl-&gt;addComplexType(
      'Chapter',
      'complexType',
      'struct',
      'all',
      '',
      array(
          'title' =&gt; array('name'=&gt;'title','type'=&gt;'xsd:string'),
          'page' =&gt; array('name'=&gt;'page','type'=&gt;'xsd:int')
      )
  );
  
  $server-&gt;wsdl-&gt;addComplexType(
      'ChapterArray',
      'complexType',
      'array',
      '',
      'SOAP-ENC:Array',
      array(),
      array(
          array('ref'=&gt;'SOAP-ENC:arrayType','wsdl:arrayType'=&gt;'tns:Chapter[]')
      ),
      'tns:Chapter'
  );
  
  $server-&gt;wsdl-&gt;addComplexType(
      'Book',
      'complexType',
      'struct',
      'all',
      '',
      array(
          'author' =&gt; array('name'=&gt;'author','type'=&gt;'xsd:string'),
          'title' =&gt; array('name'=&gt;'title','type'=&gt;'xsd:string'),
          'numpages' =&gt; array('name'=&gt;'numpages','type'=&gt;'xsd:int'),
          'toc' =&gt; array('name'=&gt;'toc','type'=&gt;'tns:ChapterArray')
      )
  );
  
  $server-&gt;register(
      'getBook',
      array('title'=&gt;'xsd:string'),
      array('return'=&gt;'tns:Book'),
      $NAMESPACE);
  
  function getBook($title) {
       // Create TOC
       $toc = array();
       $toc[] = array('title' =&gt; 'Chapter One', 'page' =&gt; 1);
       $toc[] = array('title' =&gt; 'Chapter Two', 'page' =&gt; 30);
  
       // Create book
       $book = array(
                   'author' =&gt; "Jack London",
                   'title' =&gt; $title,
                   'numpages' =&gt; 42,
                   'toc' =&gt; $toc);
  
       return $book;
  }
  </code></pre>
  
  <p>but got error returned at the SOAP Response, i am testing it using SopUI. i got an error like this :</p>
  
  <pre><code>&lt;br /&gt;
  &lt;b&gt;Notice&lt;/b&gt;:  Array to string conversion in &lt;b&gt;E:\xampp\htdocs\myweb\lib\nusoap.php&lt;/b&gt; on line &lt;b&gt;6132&lt;/b&gt;&lt;br /&gt;
  &lt;br /&gt;
  &lt;b&gt;Notice&lt;/b&gt;:  Array to string conversion in &lt;b&gt;E:\xampp\htdocs\myweb\lib\nusoap.php&lt;/b&gt; on line &lt;b&gt;6132&lt;/b&gt;&lt;br /&gt;
  &lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"&gt;&lt;SOAP-ENV:Body&gt;&lt;ns1:getBookResponse xmlns:ns1="http://localhost/myweb"&gt;&lt;return&gt;&lt;author&gt;Jack London&lt;/author&gt;&lt;title&gt;This is my book&lt;/title&gt;&lt;numpages&gt;42&lt;/numpages&gt;&lt;toc&gt;&lt;item&gt;&lt;title&gt;Chapter One&lt;/title&gt;&lt;page&gt;1&lt;/page&gt;&lt;/item&gt;&lt;item&gt;&lt;title&gt;Chapter Two&lt;/title&gt;&lt;page&gt;30&lt;/page&gt;&lt;/item&gt;&lt;/toc&gt;&lt;/return&gt;&lt;/ns1:getBookResponse&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>how can i fix this error? can somebody help me to solve this error please... many thanks in advance... </p>