title: Set attributes for parameters in SOAP request PHP
body: <p>I'm trying to use a webservice which only allows SOAP request</p>
  
  <p>as far as I know I must create a request that looks like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;SessionCreateRQ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;POS&gt;
      &lt;Source PseudoCityCode="SECRET_CODE" /&gt;
    &lt;/POS&gt;
  &lt;/SessionCreateRQ&gt;
  </code></pre>
  
  <p>however while adding the parameter to SessionCreateRQ method I don't know how to add the POS parameter called Source and have no clue on how to set the attribute for that parameter</p>
  
  <p>im trying the following in php</p>
  
  <pre><code>  $body = array(
          'POS' =&gt; array('source' =&gt; 'PseudoCityCode:SECRET_CODE'));
  
      try
      {
          $result = $c-&gt;SessionCreateRQ($body);
      }
  </code></pre>
  
  <p>but no luck, does anyone has a clue on how should I construct this call properly ?</p>
  
  <p>thanks !</p>