Accessing Magento SOAP Web Service API or get the WSDL in Magento Commerce 1.4.1.0, you may get the following error:
Parse error: syntax error, unexpected T_PUBLIC in /…/app/code/core/Mage/Api/Model/Server/Adapter/Soap.php on line 144
(error message is similar with compilation enabled, just inside a flat path)
This happens because of a typo in Magento Soap.php file. On line 133-135, change from:
} else {
$this->fault('0', 'Unable to load Soap extension on the server');
return $this;
to the patched version:
} else
$this->fault('0', 'Unable to load Soap extension on the server');
return $this;
Just remove an extra opening curly bracket (thanks hoerj!). You’ve now fixed Magento’s SOAP API XML Web Service bug!
Happy API-ing!
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.

