|
Posted by ejpoirier on 10/10/05 20:55
I'm trying to get https to work for Web Services in PHP. I've
installed PHP 5.0.5 with the following configuration line:
../configure --with-mysql=/usr/local/mysql \
--with-apxs=/usr/local/apache/bin/apxs \
--with-gd=/usr/local/src/ \
--with-gd --with-freetype-dir=/usr \
--enable-gd-native-ttf \
--enable-gd-imgstrttf \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-zlib \
--with-lib-xml \
--with-lib-xsl \
--enable-soap \
--with-open-ssl \
--with-curl=/usr/local/bin/curl \
--with-curlwrappers
I'm able to open https streams with fopen, I've even connected to WSDLs
with fopen and https. I'm able to open and use non-https web services
with the SoapClient. I am unable to open any https web services with
SoapClient. For example, trying to run this script:
http://playground.jwscripts.com/php5-google-adwords-api.phps results in
a fatal exception on my server. Unfortunately I'm not at liberty to
divulge the URL for the server. But, here is the (doctored) output:
SoapFault exception: [HTTP] Could not connect to host in
/usr/local/apache/sites/website.com/htdocs/soap/soaptestscript.php:39
Stack trace:
#0
/usr/local/apache/sites/website.com/htdocs/soap/soaptestscript.php(39):
SoapClient->__doRequest('__soapCall('estimateKeyword...', Array, NULL,
Array)
#2 {main}
Does anyone have any thoughts on what the problem may be?
[Back to original message]
|