title: soap client in php - looks like we got no XML document
body: <p>I get the error message : "looks like we got no XML document" .</p>
  
  <p>This is my php script :</p>
  
  <pre><code>&lt;?php
  
  $client = new SoapClient("http://ws-argos.cls.fr/argosDws/services/DixService?wsdl", array('trace' =&gt; 1, "exceptions" =&gt; 0));
  
  $result = $client-&gt;getXml(array (
          'username' =&gt; 'my username',
          'password' =&gt; 'my password',
          'platformId' =&gt; '1',
          'nbPassByPtt' =&gt; 100,
          'nbDaysFromNow' =&gt; 10,
          'mostRecentPassages' =&gt; true
      ));
  
  
  echo "====== REQUEST HEADERS =====" . PHP_EOL;
      var_dump($client-&gt;__getLastRequestHeaders());
      echo "========= REQUEST ==========" . PHP_EOL;
      var_dump($client-&gt;__getLastRequest());
      echo "========= RESPONSE =========" . PHP_EOL;
      var_dump($result);
  </code></pre>
  
  <p>and this is the result of __getLastRequest() :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;SOAP-ENV:Envelope
      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
      xmlns:ns1="http://service.dataxmldistribution.argos.cls.fr/types"&gt;
  
      &lt;SOAP-ENV:Body&gt;
          &lt;ns1:xmlRequest&gt;
              &lt;ns1:username&gt;my username&lt;/ns1:username&gt;
              &lt;ns1:password&gt;my password&lt;/ns1:password&gt;
              &lt;ns1:platformId&gt;1&lt;/ns1:platformId&gt;
              &lt;ns1:nbPassByPtt&gt;100&lt;/ns1:nbPassByPtt&gt;
              &lt;ns1:nbDaysFromNow&gt;10&lt;/ns1:nbDaysFromNow&gt;
              &lt;ns1:mostRecentPassages&gt;true&lt;/ns1:mostRecentPassages&gt;
          &lt;/ns1:xmlRequest&gt;
      &lt;/SOAP-ENV:Body&gt;
  
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>and this is how the request should look according to the documentation :</p>
  
  <pre><code>&lt;soap:Envelope
      xmlns:soap=”http://www.w3.org/2003/05/soap-envelope”
      xmlns:typ=”http://service.dataxmldistribution.argos.cls.fr/types”&gt;
  
     &lt;soap:Header/&gt;
  
      &lt;soap:Body&gt;
        &lt;typ:xmlRequest&gt;
          &lt;typ:username&gt;mturiot&lt;/typ:username&gt;
          &lt;typ:password&gt;qt&lt;/typ:password&gt;
          &lt;typ:platformId&gt;1&lt;/typ:platformId&gt;
          &lt;typ:nbPassByPtt&gt;2&lt;/typ:nbPassByPtt&gt;
          &lt;typ:nbDaysFromNow&gt;10&lt;/typ:nbDaysFromNow&gt;
          &lt;typ:mostRecentPassages&gt;true&lt;/typ:mostRecentPassages&gt;
          &lt;/typ:xmlRequest&gt;
      &lt;/soap:Body&gt;
  
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>What am i doing wrong ? Any help is appreciated !</p>