New: Add global parameter connect timeout and response timeout for all external access.
This commit is contained in:
parent
ae89c2175b
commit
71bcf85dc7
@ -67,7 +67,7 @@ else
|
|||||||
$params=getSoapParams();
|
$params=getSoapParams();
|
||||||
//ini_set('default_socket_timeout', $params['response_timeout']);
|
//ini_set('default_socket_timeout', $params['response_timeout']);
|
||||||
//$soapclient = new SoapClient($WS_DOL_URL_WSDL,$params);
|
//$soapclient = new SoapClient($WS_DOL_URL_WSDL,$params);
|
||||||
$soapclient = new nusoap_client($WS_DOL_URL_WSDL,true,$params['proxy_host'],$params['proxy_port'],$params['proxy_login'],$params['proxy_password'],$params['connection_timeout'],$params['response_timeout']);
|
$soapclient = new nusoap_client($WS_DOL_URL_WSDL,true,$params['proxy_host'],$params['proxy_port'],$params['proxy_user'],$params['proxy_host'],$params['connection_timeout'],$params['response_timeout']);
|
||||||
|
|
||||||
// Check for an error
|
// Check for an error
|
||||||
$err = $soapclient->getError();
|
$err = $soapclient->getError();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user