title: Does mismatching of ns1 and tem in a SOAP Request affect the request?
body: <p>I don't know how to put this, but I was supposed to send a SOAP request with following format:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:tem="http://tempuri.org/"&gt;
      &lt;soapenv:Header/&gt;
      &lt;soapenv:Body&gt;
         &lt;tem:RequestTopup&gt;
             &lt;tem:sClientUserName&gt;?&lt;/tem:sClientUserName&gt;
             &lt;tem:sClientPassword&gt;?&lt;/tem:sClientPassword&gt;
             &lt;tem:sClientTxID&gt;?&lt;/tem:sClientTxID&gt;
             &lt;tem:sProductID&gt;?&lt;/tem:sProductID&gt;
             &lt;tem:dProductPrice&gt;?&lt;/tem:dProductPrice&gt;
             &lt;tem:sCustomerAccountNumber&gt;?&lt;/tem:sCustomerAccountNumber&gt;
             &lt;tem:sCustomerMobileNumber&gt;?&lt;/tem:sCustomerMobileNumber&gt;
             &lt;tem:sEncKey&gt;?&lt;/tem:sEncKey&gt;
        &lt;/tem:RequestTopup&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>My php code was like below:</p>
  
  <pre><code>$opts = array(
      'ssl' =&gt; array('ciphers' =&gt; 'RC4-SHA', 'verify_peer' =&gt; false, 'verify_peer_name' =&gt; false)
  );
  
  $params = array(
      'encoding' =&gt; 'UTF-8',
      'verifypeer' =&gt; false,
      'verifyhost' =&gt; false,
      'trace' =&gt; 1, 'exceptions' =&gt; 1,
      "connection_timeout" =&gt; 180,
      'stream_context' =&gt; stream_context_create($opts)
  );
  
  
  
  $client = new SoapClient("http://xmpl/connect.asmx?WSDL", $params);    
  
      $txn_id = "2017021234567";
  
  $result = $client-&gt;RequestTopup(
      array(
          'sClientUserName' =&gt; '60123456789',
          'sClientPassword' =&gt; '123456789',
          'sProductID' =&gt; '1',
          'dProductPrice' =&gt; '10',
          'sClientTxID' =&gt; $txn_id,
          'sCustomerAccountNumber' =&gt; '60166527234',
          'sCustomerMobileNumber' =&gt; '60166527234',
          'sEncKey' =&gt; 'sample_enc',
      )
  );
  
  echo $client-&gt;__getLastRequest();
  </code></pre>
  
  <p>Now, the problem is this generates the xml in correct format alright, but replaces all the <strong>"tem"</strong> with <strong>"ns1"</strong>. I'm sorry to say this, but I do not even know the difference between the two and googling didn't help much.</p>
  
  <p>Will this make any difference if I request the xml with "ns1" ? Or should I change it to "tem" as the client end expects it ? Please help.</p>