title: SOAP Request send empty body
body: <p>I can't find out where is the problem, I have prepared an XML for sending through the SOAP Client like so:</p>
  
  <pre><code>$client = new SoapClient($url, array(
      'trace' =&gt; true,
      "style"    =&gt; SOAP_RPC,
      "use"      =&gt; SOAP_ENCODED
  ));
  
  $response = $client-&gt;sendItems($xml);
  
  var_dump($client-&gt;__getLastRequest());
  </code></pre>
  
  <p><code>var_dump</code> shows me <code>string(233) " "</code>, but when I'm testing it throught the PHPStorm Rest Client testing tool, it shows me this:</p>
  
  <pre><code>string(233) "&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://externalsite.com/ltm/"&gt;&lt;SOAP-ENV:Body&gt;&lt;ns1:sendItemsRequest/&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;
  "
  </code></pre>
  
  <p>There are no content inside the body. I triple-checked that my <code>$xml</code> contains the full XML with bodycontent.</p>
  
  <p>Anyone got similiar problem before or have some idea what's going on ?</p>
  
  <p><strong>==== UPDATED ====</strong></p>
  
  <p>Here is the XML Content:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ltm="http://externalsite.com/ltm/"&gt;
  &lt;soapenv:Header/&gt;
  &lt;soapenv:Body&gt;
      &lt;ltm:sendItemsRequest&gt;
          &lt;ItemsToAdd&gt;
              &lt;ItemToAdd&gt;
                  &lt;description&gt;DEMO DESCRIPTION text&lt;/description&gt;
                  &lt;url&gt;http://localhost/media/items/0000000001.jpg&lt;/url&gt;
                  &lt;brand&gt;BRANDTEST&lt;/brand&gt;
                  &lt;status&gt;creation&lt;/status&gt;
                  &lt;statusDate&gt;1423209737&lt;/statusDate&gt;
                  &lt;beginDate&gt;1406844000&lt;/beginDate&gt;
                  &lt;endDate&gt;1730329200&lt;/endDate&gt;
                  &lt;targets&gt;
                          &lt;barcode&gt;1234567891011&lt;/barcode&gt;
                          &lt;barcode&gt;9876543210123&lt;/barcode&gt;
                  &lt;/targets&gt;
                  &lt;medias&gt;
                      &lt;media&gt;
                          &lt;retailer&gt;RETAILERTEST&lt;/retailer&gt;
                          &lt;format&gt;dummyformat&lt;/format&gt;
                      &lt;/media&gt;
                  &lt;/medias&gt;
              &lt;/ItemToAdd&gt;
          &lt;/ItemsToAdd&gt;
      &lt;/ltm:sendItemsRequest&gt;
  &lt;/soapenv:Body&gt;
  </code></pre>
  
  <p></p>