Skip to content
Snippets Groups Projects
Commit e71e7738 authored by Marius Burkard's avatar Marius Burkard
Browse files

Merge branch '6266-add-socket-timeout-when-querying-eu-vat-id-verification-server' into 'develop'

Resolve "Add socket timeout when querying EU VAT-ID verification server"

Closes #6266

See merge request ispconfig/ispconfig3!1546
parents ddb67926 32aecc64
No related branches found
No related tags found
No related merge requests found
......@@ -175,7 +175,8 @@ class validate_client {
}
}
try {
$client = new SoapClient("http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl");
ini_set("default_socket_timeout", 5);
$client = new SoapClient("http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl", array('connection_timeout' => 5));
$params = array('countryCode' => $cc, 'vatNumber' => $vn);
try{
$r = $client->checkVat($params);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment