我的PHP项目有问题,我无法理解为什么,但是突然之间,我收到了以前从未使用过的SoapClient错误。
获取http用户时出现错误,我已经在网上搜索了,但是提出的解决方案对我不起作用;我试过了:
ini_set("default_socket_timeout", 120);
和
$client = new SoapClient ( "../data/IntesaDocuSign.wsdl", array(
'cache_wsdl' => WSDL_CACHE_NONE,
'keep_alive' => false,
) );
但是他们没有为我工作。
这是堆栈跟踪:
堆栈跟踪: 0 [内部功能]:SoapClient-> __ doRequest('__ call('getEmbeddedSign ...',Array) 2 /存储/vhosts/xxx/htdocs/xxxx/application/controllers/FirmaElettronicaController.php(515):SoapClient->getEmbeddedSignatureUrl(Array) 3 /storage/vhosts/xxxx/htdocs/xxx/library/Zend/Controller/Action.php(516):FirmaElettronicaController-> indexAction() 4 /storage/vhosts/xxx/htdocs/xxx/library/Zend/Controller/Dispatcher/Standard.php(295):Zend_Controller_Action-> dispatch('indexAction') 5 /storage/vhosts/xxx/htdocs/xxx/library/Zend/Controller/Front.php(954):Zend_Controller_Dispatcher_Standard-> dispatch(Object(Zend_Controller_Request_Http),Object(Zend_Controller_Response_Http)) 6 /storage/vhosts/xxxx/htdocs/xxx/library/Zend/Application/Bootstrap/Bootstrap.php(97):Zend_Controller_Front-> dispatch() 7 /storage/vhosts/xxx/htdocs/xxx/library/Zend/Application.php(366):Zend_Application_Bootstrap_Bootstrap-> run() 8 /存储/vhosts/xxxx/htdocs/xxx/public/index.php(26):Zend_Application-> run() 9 {main}
这是我的代码:
ini_set("default_socket_timeout", 5000);
$client = new SoapClient ( "../data/IntesaDocuSign.wsdl", array('cache_wsdl' => WSDL_CACHE_NONE
) );
$response = new stdClass ();
//print_r($documents);
$response->url = $client->getEmbeddedSignatureUrl ( array (
'documents' => $documents,
'members' => $members,
'emailSubject' => "xxxxx",
'thanksPageUrl' => "http://xxxx/xxx/public/firma-elettronica/thanks-page"
) )->return;
和xml:
</xs:element>
<xs:element name="getEmbeddedSignatureUrl">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="documents"
nillable="true" type="ax26:DocumentInformation" />
<xs:element maxOccurs="unbounded" minOccurs="0" name="members"
nillable="true" type="ax26:Member" />
<xs:element minOccurs="0" name="emailSubject" nillable="true"
type="xs:string" />
<xs:element minOccurs="0" name="thanksPageUrl"
nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
有人可以帮我吗?