Magento web service response content type error
Views (998)
The content type text/xml; charset=utf-8,text/xml; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 297 bytes of the response were: ”.
\app\code\core\Mage\Api\Model\Server\Wsi\Adapter\Soap.php
Change
line 52:
->setHeader(‘Content-Type’,'text/xml; charset=’.$apiConfigCharset)
line 78
->setHeader(‘Content-Type’,'text/xml; charset=’.$apiConfigCharset)
To
->setHeader(‘Content-Type’,'text/xml; charset=’.$apiConfigCharset, true)
Filed under: eCommerce Tagged: Magento
This was originally posted here.

Like
Report
*This post is locked for comments