title: How to disable auto-escaping of HTML entities in php \SoapClient?
body: <p>I have to talk to a remote remote SoapServer that has a string field <code>MessageXML</code> where I have to put in unescaped XML that is encapsualated in CDATA.</p>
  
  <p>I am trying to use php's default <code>\SoapClient</code>.</p>
  
  <p>My <code>$payload</code> looks like this:</p>
  
  <pre><code>&lt;![CDATA[&lt;DepartureDate&gt;01/12/2015-01/12/2016&lt;/DepartureDate&gt;]]&gt;
  </code></pre>
  
  <p>Yet when requesting the Soap service via:</p>
  
  <pre><code>$client-&gt;ThatMethod(['MessageXML' =&gt; $payload];
  </code></pre>
  
  <p>I can see that the actual response gets escaped in the process via:</p>
  
  <pre><code>$lastRequest = $client-&gt;__getLastRequest();
  
  string (1055) "&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://tempuri.org/SOAP_SERVICE"&gt;&lt;SOAP-ENV:Body&gt;&lt;ns1:ThatMethod&gt;&lt;ns1:MessageXML&gt;&amp;lt;![CDATA[&amp;lt;DepartureDate&amp;gt;01/12/2015-01/12/2016&amp;lt;/DepartureDate&amp;gt;]]&amp;gt;&lt;/ns1:MessageXML&gt;&lt;/ns1:SearchBySea&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;"
  </code></pre>
  
  <p>I do realize that this is expected behaviour, yet it seems that the Soap remote cannot handle escaped data. This is why I don't want to escape the payload.</p>
  
  <p>How to set the parameter that it accepts raw unescaped data?</p>