web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Magento web service response content type error

Zhongchen Zhou Profile Picture Zhongchen Zhou 681

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.

Comments

*This post is locked for comments