title: PHP soapClient and Sequences issue
body: <p>I read through a few of the other solutions on here for issues that seemed similar to the problem that I am having, but none seemed to work.  Anyways I need to call a soap function that has a sequence of elements with the same name as their parent element, and the names all have a '.' in them.  Below is the part of the wsdl that I cant seem to wrap my head around a way of creating an array that will resemble what is needed.</p>
  
  <p>Also, the sub array of 'option.list' is always going to have a different number of occurrences, so I need to somhow build this with a loop of some sort in php.  Any help is much appreciated.</p>
  
  <pre><code>&lt;xs:element minOccurs="0" name="option.list"&gt;
  &lt;xs:complexType&gt;
      &lt;xs:complexContent&gt;
          &lt;xs:extension base="cmn:ArrayType"&gt;
              &lt;xs:sequence&gt;
                  &lt;xs:element maxOccurs="unbounded" minOccurs="0" name="option.list"&gt;
                      &lt;xs:complexType&gt;
                          &lt;xs:complexContent&gt;
                              &lt;xs:extension base="cmn:StructureType"&gt;
                                  &lt;xs:sequence&gt;
                                      &lt;xs:element minOccurs="0" name="SubItemId" nillable="true" type="cmn:DecimalType"/&gt;
                                      &lt;xs:element minOccurs="0" name="SubOptions" nillable="true" type="cmn:StringType"/&gt;
                                      &lt;xs:element minOccurs="0" name="SubItemName" nillable="true" type="cmn:StringType"/&gt;
                                  &lt;/xs:sequence&gt;
                              &lt;/xs:extension&gt;
                          &lt;/xs:complexContent&gt;
                      &lt;/xs:complexType&gt;
                  &lt;/xs:element&gt;
              &lt;/xs:sequence&gt;
          &lt;/xs:extension&gt;
      &lt;/xs:complexContent&gt;
  &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  </code></pre>
  
  <p>An idea of what I tried:</p>
  
  <pre><code>for($i=0;$i&lt;count($options);$i++)
  {
      $option_list[] = array(
        "option.list" =&gt; array(
        "SubItemId" =&gt; $i,
        "SubOptions" =&gt; $options[$i]['suboptions'],
        "SubItemName" =&gt; $options[$i]['subitemname']
        )
  );
  }
  
  $instance = array(
      "option.list"=&gt;$option_list
  );
  </code></pre>
  
  <p>When I debug the request, it keeps showing this is what I am sending:</p>
  
  <pre><code>&lt;ns1:option.list&gt;&lt;ns1:option.list/&gt;&lt;/ns1:option.list&gt;
  </code></pre>
  
  <p>Also, this is what the option.list array looks like when I print_r before I send it, if this helps at all.</p>
  
  <pre><code>                [option.list] =&gt; Array
                      (
                          [0] =&gt; stdClass Object
                              (
                                  [option.list] =&gt; stdClass Object
                                      (
                                          [SubItemId] =&gt; 0
                                          [SubOptions] =&gt; &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;&lt;form&gt;&lt;select id="DBMS" label="DBMS type:" style="combo"&gt;MS SQL&lt;option label="" /&gt;&lt;option id="0" label="DB2"&gt;DB2&lt;/option&gt;&lt;option id="1" label="IMS"&gt;IMS&lt;/option&gt;&lt;option id="2" label="MS SQL"&gt;MS SQL&lt;/option&gt;&lt;option id="3" label="Oracle"&gt;Oracle&lt;/option&gt;&lt;option id="4" label="UDB"&gt;UDB&lt;/option&gt;&lt;/select&gt;&lt;select id="Type" label="lation Type:" style="combo"&gt;Add New Instance&lt;option label="" /&gt;&lt;option id="0" label="Add New Environment"&gt;Add New Environment&lt;/option&gt;&lt;option id="1" label="Add New Instance"&gt;Add New Instance&lt;/option&gt;&lt;option id="2" label="Add New Database"&gt;Add New Database&lt;/option&gt;&lt;option id="3" label="Modify Environment"&gt;Modify Environment&lt;/option&gt;&lt;option id="4" label="Modify Instance"&gt;Modify Instance&lt;/option&gt;&lt;option id="5" label="Modify Database"&gt;Modify Database&lt;/option&gt;&lt;option id="6" label="Retire Environment"&gt;Retire Environment&lt;/option&gt;&lt;option id="7" label="Retire Instance"&gt;Retire Instance&lt;/option&gt;&lt;option id="8" label="Retire Database"&gt;Retire Database&lt;/option&gt;&lt;/select&gt;&lt;select id="Complexity" label="xity:" style="combo"&gt;Complex [+$2500.00]&lt;option label="" /&gt;&lt;option id="0" label="Simple [+$500.00]"&gt;Simple [+$500.00]&lt;/option&gt;&lt;option id="1" label="Medium [+$1000.00]"&gt;Medium [+$1000.00]&lt;/option&gt;&lt;option id="2" label="Complex [+$2500.00]"&gt;Complex [+$2500.00]&lt;/option&gt;&lt;/select&gt;&lt;select id="RecoveryTier" label="rability Tier:" style="combo"&gt;Tier 2&lt;option label="" /&gt;&lt;option id="0" label="Tier 1"&gt;Tier 1&lt;/option&gt;&lt;option id="1" label="Tier 2"&gt;Tier 2&lt;/option&gt;&lt;option id="2" label="Tier 3"&gt;Tier 3&lt;/option&gt;&lt;/select&gt;&lt;select id="Backup" label=" Backup Required?" style="combo"&gt;Yes&lt;option label="" /&gt;&lt;option id="0" label="Yes"&gt;Yes&lt;/option&gt;&lt;option id="1" label="No"&gt;No&lt;/option&gt;&lt;/select&gt;&lt;select id="Replication" label=" tables require replication?" style="combo"&gt;UDB Dprop&lt;option label="" /&gt;&lt;option id="0" label="UDB Dprop"&gt;UDB Dprop&lt;/option&gt;&lt;option id="1" label="Goldengate"&gt;Goldengate&lt;/option&gt;&lt;option id="2" label="ASM"&gt;ASM&lt;/option&gt;&lt;option id="3" label="No"&gt;No&lt;/option&gt;&lt;/select&gt;&lt;/form&gt;
                                          [SubItemName] =&gt; DB Modification
                                      )
  
                              )
  
                      )
  </code></pre>