I try to use magento SOAP but i get the error "SoapFault exception: [HTTP] Unknown Content-Encoding"
the code i use is this:
function init_connector() {
global $mage_url,$mage_user, $mage_api_key, $sessionId, $proxy;
try {
$proxy = new SoapClient( $mage_url ."/api/?wsdl" ); //calling this function with no errors
// Login to Magento
$sessionId = $proxy->login( $mage_user, $mage_api_key ); //this call trigers the exception
return 1;
} catch( SoapFault $fault ) {
logError($fault);
return 0;
}
}
when creating the object $proxy i get no errors, but when i call $sessionId = $proxy->login(...) i get the above exception.
The same code works fine for other magento installations.
Are there any suggestions?
Thanks..