title: SOAP Request works with Postman, not in PHP
body: <p>I am trying to call a function that is made available by slovak post office through SOAP. </p>
  
  <p>They published their WSDL at <a href="https://mojezasielky.posta.sk/integration/webServices/api?wsdl" rel="nofollow noreferrer">https://mojezasielky.posta.sk/integration/webServices/api?wsdl</a></p>
  
  <p>I have already registered and sucessfully used their services by creating a XML that is sent through Postman. Although I have a problem to make it work in PHP - it always returns an error stating that user was not found which does not make sense (the error being SOAP-ENV:Server user_not_found).</p>
  
  <p>In php I am trying to call it this way (does not work):</p>
  
  <pre><code>$params = array(
      'apiKey' =&gt; "123abc",
      'userId' =&gt; "abc123",
      'EPH' =&gt; $ephString // the long XML specified later in the question. I know I should use objects, this is just for testing purposes
  
  );
  try {
      $wsdl = 'https://mojezasielky.posta.sk/integration/webServices/api';
  
      $client = new SoapClient($wsdl, $params);
      $requestResponse = ($client-&gt;__soapCall("importSheet", $params));
      echo $requestResponse;
  } catch (SoapFault $exception) {
      echo $exception;
  }
  </code></pre>
  
  <p>Here is my XML request (don't mind the comments, it just explains what specific values are)</p>
  
  <pre><code>&lt;Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;Body&gt;
          &lt;importSheetRequest xmlns="http://mojezasielky.posta.sk/api"&gt;
              &lt;auth&gt;
                  &lt;userId&gt;idOfUserAcc&lt;/userId&gt;
                  &lt;apiKey&gt;theSuperSecretAPiKey&lt;/apiKey&gt;
              &lt;/auth&gt;
              &lt;EPH&gt;
                 &lt;InfoEPH&gt;
                    &lt;Mena&gt;EUR&lt;/Mena&gt;
                    &lt;TypEPH&gt;1&lt;/TypEPH&gt; &lt;!-- 1 = EPH - vzdy sa zadava len cislo 1 pri podaji --&gt;
                    &lt;PocetZasielok&gt;1&lt;/PocetZasielok&gt; &lt;!-- Tu tiez necham cislo 1, vzdy budem po jednom podavat--&gt;
                    &lt;DruhZasielky&gt;1&lt;/DruhZasielky&gt; &lt;!-- 1 doporuceny, 2 poisteny, 8 expres kurier, 15 easy express 1, 16 easy express 10, pozor, pre nemecko nesmie byt poisteny! --&gt;
                    &lt;Odosielatel&gt;
                       &lt;OdosielatelID /&gt;
                       &lt;Meno&gt;Name Surname&lt;/Meno&gt;
                       &lt;Organizacia&gt;Company s.r.o.&lt;/Organizacia&gt;
                       &lt;Ulica&gt;Narodna 1&lt;/Ulica&gt;
                       &lt;Mesto&gt;Bratislava&lt;/Mesto&gt;
                       &lt;PSC&gt;85101&lt;/PSC&gt;
                       &lt;Krajina&gt;SK&lt;/Krajina&gt;
                       &lt;Email&gt;me@notyou.com&lt;/Email&gt;
                    &lt;/Odosielatel&gt;
                 &lt;/InfoEPH&gt;
                 &lt;Zasielky&gt;
                    &lt;Zasielka&gt;
                       &lt;Adresat&gt;
                          &lt;Meno&gt;zahranicie test bez cislo uctu&lt;/Meno&gt;
                          &lt;Organizacia /&gt; &lt;!-- povinna len ak je vyplnene meno + moze ostat prazdna --&gt;
                          &lt;Ulica&gt;cokolvek&lt;/Ulica&gt;
                          &lt;Mesto&gt;hocico&lt;/Mesto&gt;
                          &lt;PSC&gt;10000&lt;/PSC&gt;
                          &lt;Krajina&gt;DE&lt;/Krajina&gt; &lt;!-- 2znakovy iso kod --&gt;
                       &lt;/Adresat&gt;
                       &lt;Info&gt;
                          &lt;CenaPoistneho&gt;100&lt;/CenaPoistneho&gt;
                       &lt;/Info&gt;
                    &lt;/Zasielka&gt;
                 &lt;/Zasielky&gt;
              &lt;/EPH&gt;
          &lt;/importSheetRequest&gt;
      &lt;/Body&gt;
  &lt;/Envelope&gt;
  </code></pre>
  
  <p>Postman headers configuration (works with the XML specified)
  <a href="https://i.stack.imgur.com/vdApa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vdApa.png" alt="Postman headers configuration"></a></p>
  
  <p>How should I use PHPs soap client to make it work?</p>