title: Change SOAP request format
body: <p>I'm busy putting together a SOAP script which for the most part is working properly, however there is one request which wasn't working properly and have been asked to change the format of the request XML by the host company and I'm stuck...</p>
  
  <p>Currently my XML request looks like this...</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://www.???.com/???/"&gt;
    &lt;env:Body&gt;
      &lt;ns1:GetTransactions&gt;
        &lt;ns1:Filter&gt;
          &lt;ns1:CardId&gt;1234&lt;/ns1:CardId&gt;
        &lt;/ns1:Filter&gt;
        &lt;ns1:Range&gt;
          &lt;ns1:FirstRow/&gt;
          &lt;ns1:LastRow/&gt;
        &lt;/ns1:Range&gt;
      &lt;/ns1:GetTransactions&gt;
    &lt;/env:Body&gt;
  &lt;/env:Envelope&gt;
  </code></pre>
  
  <p>But the host company has requested that it looks like this...</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"&gt;
    &lt;env:Body&gt;
      &lt;GetTransactions xmlns="http://www.???.com/???/"&gt;
        &lt;Filter&gt;
          &lt;CardId&gt;1234&lt;/CardId&gt;
        &lt;/Filter&gt;
        &lt;Range&gt;
          &lt;FirstRow/&gt;
          &lt;LastRow/&gt;
        &lt;/Range&gt;
      &lt;/GetTransactions&gt;
    &lt;/env:Body&gt;
  &lt;/env:Envelope&gt;
  </code></pre>
  
  <p>My PHP that forms the request is as follow...</p>
  
  <pre><code>$wsdl = 'http://???.com/???/???.asmx?WSDL';
  $endpoint = 'http://???.com/???/???.asp';
  
  $soap_client = new SoapClient( $wsdl, array(
      'soap_version'  =&gt; SOAP_1_2,
      'trace'         =&gt; 1,
      'exceptions'    =&gt; 0,
      'features'      =&gt; SOAP_SINGLE_ELEMENT_ARRAYS,
      'location'      =&gt; $endpoint
  ) );
  
  $get_transactions = $soap_client-&gt;GetTransactions( array(
      'Filter' =&gt; array(
          'CardId'    =&gt; '1234'
      ),
      'Range' =&gt; array(
          'FirstRow'  =&gt; NULL,
          'LastRow'   =&gt; NULL
      )
  ) );
  </code></pre>
  
  <p>Can anyone point me in the right direction with regard to what's required to change the format of the output XML?</p>