我试图创建一个肥皂连接到Magento的Web服务,但是当我尝试创建一个soap客户端类的一个实例时,我收到一个错误。我可以在firefox中查看wsdl文件,没有问题,我可以看到php在apache日志中请求wsdl,但仍然失败。 Nusoap可以连接。
$proxy = new SoapClient('someaddress?wsdl');
错误是
Fatal error: Uncaught SoapFault exception: [HTTP] Error Fetching http headers in /home/sites/xxx/xxx_main/system/application/views/contentpage_templates/gift_service.php:29
Stack trace:
[internal function]: SoapClient->__doRequest('<?xml version="...', 'http://cornishw...', 'urn:Mage_Api_Mo...', 1, 0)
[internal function]: SoapClient->__call('call', Array)
/home/sites/xxx/xxx_main/system/application/views/contentpage_templates/gift_service.php(29): SoapClient->call(NULL, 'catalog_categor...', 5, 'giftshop')
/home/sites/xxx/xxx_main/system/application/libraries/MY_Loader.php(586): include('/home/sites/cor...')
/home/sites/xxx/xxx_main/system/application/libraries/MY_Loader.php(228): MY_Loader->_ci_load(Array, '')
/home/sites/xxx/xxx_main/system/application/modules/contentpage/controllers/contentpage.php(44): MY_Loader->view('contentpage_tem...', false, true)
[internal function]: Contentpage->index()
/home/sites/xxx in /home/sites/xxx/xxx_main/system/application/views/contentpage_templates/gift_service.php on line 29
谢谢