PHP - 如何通过SoapClient发送HTML

时间:2017-05-18 13:19:23

标签: php serialization soap

每次使用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数据?

0 个答案:

没有答案