title: Php SoapVar - remove <SOAP-ENC:Struct>
body: <p>I have some issues with an xml created with SoapVar in PHP.</p>
  
  <p>I need to create an xml like this :</p>
  
  <pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" &gt;
  &lt;SOAP-ENV:Header&gt;
  ...
  &lt;ns2:Items&gt;
      &lt;ns2:OrderItem&gt; 
          &lt;ns2:ArticleID&gt;242&lt;/ns2:ArticleID&gt;
          &lt;ns2:Properties/&gt;
          &lt;ns2:Quantity&gt;1&lt;/ns2:Quantity&gt;
      &lt;/ns2:OrderItem&gt;
      &lt;ns2:OrderItem&gt; 
          &lt;ns2:ArticleID&gt;1256&lt;/ns2:ArticleID&gt;
          &lt;ns2:Properties/&gt;
          &lt;ns2:Quantity&gt;1&lt;/ns2:Quantity&gt;
      &lt;/ns2:OrderItem&gt;
  &lt;/ns2:Items&gt;
  </code></pre>
  
  <p>But when I use SoapVar to create my node with this code :</p>
  
  <pre><code>// multiple articles
  $orderItems = array();
  foreach ($order-&gt;getArticles() as $article) {
      $art = new stdClass();
      $art-&gt;$nsArticleID = $article-&gt;getArticleID();
      $art-&gt;$nsProperties = $article-&gt;getArticleProperty;
      $art-&gt;$nsQuantity = 1;
      $art = new SoapVar($art, SOAP_ENC_OBJECT);                
      $orderItems[] = $art;
      }
      $xml-&gt;$nsRequest-&gt;$nsItems = $orderItems;
  </code></pre>
  
  <p>I got this XML :</p>
  
  <pre><code>&lt;ns2:Items&gt;
     &lt;SOAP-ENC:Struct&gt;
         &lt;ns2:ArticleID&gt;242&lt;/ns2:ArticleID&gt;
         &lt;ns2:Properties/&gt;
         &lt;ns2:Quantity&gt;1&lt;/ns2:Quantity&gt;
     &lt;/SOAP-ENC:Struct&gt;
     &lt;SOAP-ENC:Struct&gt;
          &lt;ns2:ArticleID&gt;1256&lt;/ns2:ArticleID&gt;
          &lt;ns2:Properties/&gt;
          &lt;ns2:Quantity&gt;1&lt;/ns2:Quantity&gt;
     &lt;/SOAP-ENC:Struct&gt;
  &lt;/ns2:Items&gt;
  </code></pre>
  
  <p>How can I change the SOAP-ENC:Struct tag to ns2:OrderItem</p>