New: Add global parameter connect timeout and response timeout for all external access.

This commit is contained in:
Laurent Destailleur 2011-04-03 18:02:31 +00:00
parent ae89c2175b
commit 71bcf85dc7

View File

@ -67,7 +67,7 @@ else
$params=getSoapParams();
//ini_set('default_socket_timeout', $params['response_timeout']);
//$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
$err = $soapclient->getError();