PHP + SOAP. Could not connect to host

Yes, I know that the issue has already been discussed on the forum, but it remains unsolved

On my localhost with:

Ubuntu 8.10, Apache 2.2.9, PHP 5.2.6

i create soap object using wsdl file stored localy and send request to _https://gatewaybeta.fedex.com:443/web-services and got successfull response.

On production server with:

CentOS, WHM, Apache 2.2.11, PHP 5.2.9

i create soap object using wsdl file stored localy and trying to send request to _https://gatewaybeta.fedex.com:443/web-services but got error:

[ERROR_SOAP] => string(44)  Code: HTTP; Descr: Could not connect to host

Telnet from production server to _https://gatewaybeta.fedex.com:443/web-services on port 443 is success.

SOAP requests from production server to mobilestorm are success.

Also, tcpdump -vvv didn’t catch any outgoing requests from production server to fedex server while sending soap requests.

What may cause such problem ?
Thnx in adv.

Did you compare the php.ini files?

Didn’t. But the other soap requests to mobileStorm, for example, are success. The php soap extension is turned on (it’s obvious )) ) and as i mentioned above, we using WHM, and it tune everything on the fly to fit it needs. php.ini as well.

I was thinking more of things like safe mode, tmp file location, allow_url_fopen …

I am sorry, I don’t have any other ideas why one soap service would work and not another on the same server.

thnx anyway ))

Solved.

Changing

‘location’ => ‘https://gatewaybeta.fedex.com:443/web-services

to

‘location’=>‘https://199.81.198.77:443/web-services

helps ))

Seems, kinda soap name resoution problem…:sick:

Hi … I am getting the following error when sending a request. I am unable to find what could be causing this error. can any one comment on this issue?

There was an error with your request or the service is unavailable. SoapFault Object ( [message: protected] => Could not connect to host [string: private] => [code: protected] => 0
[line: protected] => 49
[trace: private] => Array ( [0] => Array ( [function] => __doRequest [class] => SoapClient [type] => -> [args] => Array ( [0] => 2dafd27f61e441cb9f41c841fc
[1] =>10.131.2.110/services/soapLinks/ [2] => [3] => 1 [4] => 0 ) ) [1] => Array ( [function] => __call [class] => SoapClient [type] => -> [args] => Array ( [0] => getBannerLinks [1] => Array ( [0] => Array ( [token] => 2dafd27f61e441cb9f41c841fc
[mid] => 35520 [page] => 1 ) ) ) ) [2] => Array ( [line] => 49 [function] => getBannerLinks [class] => SoapClient [type] => -> [args] => Array ( [0] => Array ( [token] => 2dafd27f61e441cb9f41c841fc [mid] => 35520 [page] => 1 ) ) ) ) [faultstring] => Could not connect to host [faultcode] => HTTP )

I have occur the the following error…please help me

[There was an error with your request or the service is unavailable. SoapFault Object ( [message:protected] => Could not connect to host [string:private] => [code:protected] => 0 [file:protected] =>… \soap_text.php [line:protected] => 11 [trace:private] => Array ( [0] => Array ( [function] => __doRequest [class] => SoapClient [type] => -> [args] => Array ( [0] => dd95819c3fb81bcb6dfd8 [1] => 10.1.7.142/services/soapLinks/ [2] => [3] => 1 [4] => 0 ) ) [1] => Array ( [function] => __call [class] => SoapClient [type] => -> [args] => Array ( [0] => getStoreLinks [1] => Array ( [0] => Array ( [token] => d95819c3fb81bcb6dfd8 [mid] => 35379 [page] => 1 ) ) ) ) [2] => Array ( [file] =>… \soap_text.php [line] => 11 [function] => getStoreLinks [class] => SoapClient [type] => -> [args] => Array ( [0] => Array ( [token] => d95819c3fb81bcb6dfd8 [mid] => 35379 [page] => 1 ) ) ) ) [faultstring] => Could not connect to host [faultcode] => HTTP )

hi ar1014, I got similar error and have notified linkshare. they are currently working on it. expecting a reply from them soon. will let you know if I have any updates. also pls keep me updated if you have any new information.

hi ar1014, any updates, were you able to fix the problem?

i was having same problem and this thread was so hepful for me.thanksss buddies.