Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Zend_Soap";无法连接到主机";Https_Php_Zend Framework_Soap_Https - Fatal编程技术网

Php Zend_Soap";无法连接到主机";Https

Php Zend_Soap";无法连接到主机";Https,php,zend-framework,soap,https,Php,Zend Framework,Soap,Https,我在使用Zend_Soap通过HTTPS使用Web服务时遇到问题 // create webservice $client = new Zend_Soap_Client(WsdlFile); // with certifikat $client->setHttpsCertificate(serviceCert); try { // call webservice $result = $client->callFunctionIWant(); } catch (Except

我在使用Zend_Soap通过HTTPS使用Web服务时遇到问题

// create webservice
$client = new Zend_Soap_Client(WsdlFile);
// with certifikat
$client->setHttpsCertificate(serviceCert);

try {
// call webservice
    $result = $client->callFunctionIWant(); 
} catch (Exception $e) {
    error_log('Webservice error: ' . $e->getMessage());
    $this->_redirect($this->getFrontController()->getBaseUrl().'/webservice/error/');
}
它可以在本地调用werbservice,也不需要证书。似乎实时服务器无法连接。但是使用wget,我可以测试连接,并在服务器上安装证书后看到它工作:

wget https://domain.of.server/service/service.asmx?wsdl --no-check-certificate
--2011-10-14 16:11:19--  https://domain.of.server/service/service.asmx?wsdl
Resolving domain.of.server... 192.168.0.23
Connecting to domain.of.server|192.168.0.23|:443... connected.
WARNING: cannot verify »domain.of.server« issued by `......':

Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 3326 (3,2K) [text/xml]
Saving to »service.asmx?wsdl«

100% [=========================================================================================== ==================>] 3.326       --.-K/s   in 0s      

2011-10-14 16:11:20 (857 MB/s) - »service.asmx?wsdl« saved [3326/3326]
PHP无法连接到实时系统上的主机会有什么问题

提前thx
Spanky

您的服务器中是否有防火墙或其他东西,您可以在其中托管php脚本或SOAP服务器?管理员可能会说,一切都是routet。怎么可能使用wget,但是PHP失败了?