我用http://传递了一个WSDL地址,但调用一直失败,我已经将问题隔离到ZF中的某个地方(我假设),它正在将http://更改为https://,当然我没有在SSL上运行此操作。我似乎找不到任何配置选项或其他方法来改变这一点,有什么想法吗?
PHP 5.3.5,ZF 1.11。
$c = new Zend_Soap_Client;
$c->setWsdl('http://example.org/?wsdl');
$c->someMethod(/* params */);结果为(请注意https):
Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in C:\ZF\library\Zend\Soap\Client.php:995
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://example...', 'urn:webservices...', 2)
#1 C:\ZF\library\Zend\Soap\Client.php(995): call_user_func(Array, '<?xml version="...', 'https://example...', 'urn:webservices...', 2)
#2 [internal function]: Zend_Soap_Client->_doRequest(Object(Zend_Soap_Client_Common), '<?xml version="...', 'https://example...', 'urn:webservices...', 2, 0)
#3 C:\ZF\library\Zend\Soap\Client\Common.php(70): call_user_func(Array, Object(Zend_Soap_Client_Common), '<?xml version="...', 'https://example...', 'urn:webservices...', 2, 0)
#4 [internal function]: Zend_Soap_Client_Common->__doRequest('<?xml version="...', 'https://example...', 'urn:webservices...', 2, 0)
#5 C:\ZF\library\Zend\Soap\Client.php(1123): SoapClient->__soa in C:\ZF\library\Zend\Soap\Client.php on line 995发布于 2011-12-13 06:44:49
我的猜测是在您的WSDL (http://example.org/?wsdl)中有对HTTPS的引用。可能是服务器的位置。
https://stackoverflow.com/questions/8481958
复制相似问题