Hello
I have been using the SOAP API with no issue for years, but now I am getting timeout errors sporadically. Has something changed on 3dcart's end? Do they not support SOAP v1.1 anymore? I am using PHP scripts. My connection settings are:
$client = new soapclient('http://api.3dcart.com/cart.asmx?WSDL', array('trace' => 1,'soap_version' => SOAP_1_1));
My php.ini timeout variable is set to 60s which is plenty
A basic product inventory update would be
$param = array(
'storeUrl'=>"www.[my_store].com.au",
'userKey'=>"XXXXXX",
'productId' => "[SKU]",
'quantity' => "$qty",
'replaceStock' => "true",
'callBackURL' => ""
);
$result = $client->updateProductInventory($param);
I run these inventory updates in bulk, so it gets through 3 or so then times-out. I used to be able to do unlimited.
Error message is
Warning: SoapClient::SoapClient(http://api.3dcart.com/cart.asmx?WSDL): failed to open stream: Connection timed out in upord_stat.php on line 59
Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://api.3dcart.com/cart.asmx?WSDL" .. on line 59
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://api.3dcart.com/cart.asmx?WSDL' : failed to load external entity "http://api.3dcart.com/cart.asmx?WSDL"
I have been using the SOAP API with no issue for years, but now I am getting timeout errors sporadically. Has something changed on 3dcart's end? Do they not support SOAP v1.1 anymore? I am using PHP scripts. My connection settings are:
$client = new soapclient('http://api.3dcart.com/cart.asmx?WSDL', array('trace' => 1,'soap_version' => SOAP_1_1));
My php.ini timeout variable is set to 60s which is plenty
A basic product inventory update would be
$param = array(
'storeUrl'=>"www.[my_store].com.au",
'userKey'=>"XXXXXX",
'productId' => "[SKU]",
'quantity' => "$qty",
'replaceStock' => "true",
'callBackURL' => ""
);
$result = $client->updateProductInventory($param);
I run these inventory updates in bulk, so it gets through 3 or so then times-out. I used to be able to do unlimited.
Error message is
Warning: SoapClient::SoapClient(http://api.3dcart.com/cart.asmx?WSDL): failed to open stream: Connection timed out in upord_stat.php on line 59
Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://api.3dcart.com/cart.asmx?WSDL" .. on line 59
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://api.3dcart.com/cart.asmx?WSDL' : failed to load external entity "http://api.3dcart.com/cart.asmx?WSDL"
Comment