How to disable auto-escaping of HTML entities in php \SoapClient?
问题 I have to talk to a remote remote SoapServer that has a string field MessageXML where I have to put in unescaped XML that is encapsualated in CDATA. I am trying to use php's default \SoapClient . My $payload looks like this: <![CDATA[<DepartureDate>01/12/2015-01/12/2016</DepartureDate>]]> Yet when requesting the Soap service via: $client->ThatMethod(['MessageXML' => $payload]; I can see that the actual response gets escaped in the process via: $lastRequest = $client->__getLastRequest();