PHP - How to send HTML through SoapClient

     

Every time I send html string using SoapClient I get the following error:


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 ...  

Example:


$productData = [   'id' => 123   'name' => 'ProdName'