每次使用SoapClient发送html字符串时,都会出现以下错误:
Uncaught SoapFault exception: [a:DeserializationFailed]
The formatter threw an exception while trying to deserialize the message:
There was an error while trying to deserialize parameter ...
示例:
$productData = [
'id' => 123,
'name' => 'ProdName',
'description' => 'This product is just <b>AMAZING!</b>'
];
$ws = new \SoapClient(...);
$ws->ProductUpdate($productData);
那么,我怎么能通过它发送html数据?