2012-11-09 18 views
1

下面的PHP SOAP调用:PHP SOAP调用中止连接

$retVal = parent::__soapCall($function_name, $arguments, $options, $input_headers, $output_headers); 

与变量如下:

1. $function_name = "query" 
2. $arguments = Array ([0] => Array ([store] => Array ([scheme] => workspace [address] => SpacesStore) [query] => Array ([language] => lucene [statement] => PATH:"app:company_home") [includeMetaData] =>)) 
3. $options = Array () 
4. $input_headers = Array ([0] => SoapHeader Object ([namespace] => http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd [name] => Security [data] => [mustUnderstand] => 1)) 
5. $output_headers = Array () 

不能正常工作,并导致连接中止。当然,我不能得到$retVal内容,因为脚本执行停止在__soapCall。 我不是SOAP的专家。我甚至不知道它是否缺少一些lib(它到目前为止还没有工作,新服务器安装):open-ssl,curl和soap扩展都已安装并启用。

有没有人可以给出一些建议,说明脚本为什么会崩溃而不是提供一些视频错误?

谢谢。

回答

0

解决方案是我错过了一个PHP扩展导致呼叫死亡。

缺少类是DOM文档,并安装它是很容易(不是因为它是检测到它):

yum -y install lib-xml 
service httpd restart 

缺少获得lib下,所有的工作。