title: PHP SoapClient: multiple complex types are overwritten in soapcall
body: <p>I'm having a problem with a soapclient call. The soaprequest has to look like:</p>
  
  <pre><code>      &lt;eng:Compose&gt;
       &lt;!--Optional:--&gt;
       &lt;EWSComposeRequest&gt;
          &lt;!--Optional:--&gt;
          &lt;driver&gt;
             &lt;!--Optional:--&gt;
             &lt;driver&gt;base64&lt;/driver&gt;
             &lt;!--Optional:--&gt;
             &lt;fileName&gt;INPUT&lt;/fileName&gt;
          &lt;/driver&gt;
           &lt;engineOptions&gt;   
              &lt;name&gt;FILEMAP&lt;/name&gt;
              &lt;value&gt;DLFOUT.dlf,dummy.dlf&lt;/value&gt;
           &lt;/engineOptions&gt;
           &lt;engineOptions&gt;
              &lt;name&gt;FILEMAP&lt;/name&gt;
              &lt;value&gt;PDFOUT.pdf,dummy.pdf&lt;/value&gt;     
           &lt;/engineOptions&gt;
           &lt;engineOptions&gt;
              &lt;name&gt;RUNMODE&lt;/name&gt;
          &lt;value&gt;PRODUCTION&lt;/value&gt;           
          &lt;/engineOptions&gt;
          &lt;!--Optional:--&gt;
          &lt;fileReturnRegEx&gt;^.*.(dlf|pdf)$&lt;/fileReturnRegEx&gt;
          &lt;includeHeader&gt;True&lt;/includeHeader&gt;
          &lt;includeMessageFile&gt;True&lt;/includeMessageFile&gt;
          &lt;!--Optional:--&gt;
          &lt;pubFile&gt;TestLive.pub&lt;/pubFile&gt;
       &lt;/EWSComposeRequest&gt;
    &lt;/eng:Compose&gt;
  </code></pre>
  
  <p>My soap_param is:</p>
  
  <pre><code>$soap_param = array("Compose"=&gt; array("EWSComposeRequest" =&gt; 
          array( "driver" =&gt; array( "driver" =&gt; $post_Driver, 
          "fileName" =&gt; $post_FileName), 
          "engineOptions" =&gt; array( "name" =&gt; "KEY", "value" =&gt; $INI['encodedkey']),
          "engineOptions" =&gt; array( "name" =&gt; "RUNMODE", "value" =&gt; $INI['runmode']), 
          "fileReturnRegEx" =&gt; $post_FileReturnRegEx, "includeHeader" =&gt; $post_IncludeHeader,
          "includeMessageFile" =&gt; $post_IncludeMessage, "pubFile" =&gt; $post_PubFile)));
  </code></pre>
  
  <p>The soapcall appears to work, however.... I only reveive the last engineOptions element. 
  According to the xsd the element engineOptions can appear multiple times(0 to unbounded). Witin the soapcall this element seems to be overwritten. The index: engineOptions isn't unique. </p>
  
  <p>I can't imagine that i am the only one facing this problem. I hope that there is a (simple) solution for this problem.</p>