At first the errors following:
Fatal error: Uncaught SoapFault exception: [HTTP] Error Fetching http headers in /var/www/me/public_html/soap.php:62 Stack trace: #0 [internal function]: SoapClient->__doRequest('http://dgpysws....', 'urn:login', 2, 0) #1 /var/www/me/public_html/soap.php(62): SoapClient->__call('login', Array) #2 /var/www/me/public_html/soap.php(62): SoapClient->login(Object(stdClass)) #3 {main} thrown in /var/www/me/public_html/soap.php on line 62
My codes were working perfect but a few days ago getting that errors.
I tried all things on Google and SO thats:
ini_set('default_socket_timeout', 100);
'connection_timeout' => '100'
'keep_alive' => false
5.4
to 5.6
upgrade. My tried codes:
$options = array(
'trace' => true,
'exceptions' => true,
'keep_alive' => false,
'connection_timeout' => 100,
'soap_version' => SOAP_1_2
);
$client = new SoapClient("http://dgpysws.epias.com.tr/dgpys/services/EVDServis.wsdl", $options);
$p1 = new stdCLass();
$p1->loginMessage = new stdCLass();
$p1->loginMessage->UserName = new stdCLass();
$p1->loginMessage->UserName->v = "USERNAME";
$p1->loginMessage->Password = new stdCLass();
$p1->loginMessage->Password->v = "PASSWORD";
$client->login($p1);
I can get all types with:
$client->__getTypes(); // works
But i cant login:
$client->login($p1); // not works
Note: WSDL url is IP protected. You cant get it.
We are experiencing this on multiple (CentOS, Linux, Windows 7, Windows 8) platforms through the unsupported but Salesforce-supplied SOAP interface library, from both Utah and Oregon.
We therefore strongly suspect it is a Salesforce problem.
My previous workarounds have used similar techniques as that above, increasing both timeouts to 600 and NOT messing with keep_alive or soap_version .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.