PHP and SOAP
Posted: Fri Oct 01, 2010 1:19 pm
Hello all
I have rebuilt PHP (on a Solaris 10 machine), PHP version 5.2.13.
I started by doing a "./configure --enable-soap" and watched for an hour while the configuration, make, and make test flew by. Then, a "make install" and I am rocking...or am I?
I have a script making a call on a webserver:
$soapclient = new SoapClient( "./WSDL_FILE_NAME.wsdl", array('trace' => 1));
but in the webserver logs, I see:
[01/Oct/2010:12:02:06] info ( 8777): for host 142.146.185.3 trying to POST /index.php, php5_execute reports: PHP Fatal error: Class 'SoapClient' not found in /opt/SUNWwbsvr/docs/functions.php on line 14
I'm pretty sure SOAP is enabled properly -
# php -info | grep -i soap
Returns:
Configure Command => './configure' '--enable-soap'
soap
Soap Client => enabled
Soap Server => enabled
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400
Am I just accessing SoapClient wrongly? Or is something more sinister, afoot?
TIA
Rick
I have rebuilt PHP (on a Solaris 10 machine), PHP version 5.2.13.
I started by doing a "./configure --enable-soap" and watched for an hour while the configuration, make, and make test flew by. Then, a "make install" and I am rocking...or am I?
I have a script making a call on a webserver:
$soapclient = new SoapClient( "./WSDL_FILE_NAME.wsdl", array('trace' => 1));
but in the webserver logs, I see:
[01/Oct/2010:12:02:06] info ( 8777): for host 142.146.185.3 trying to POST /index.php, php5_execute reports: PHP Fatal error: Class 'SoapClient' not found in /opt/SUNWwbsvr/docs/functions.php on line 14
I'm pretty sure SOAP is enabled properly -
# php -info | grep -i soap
Returns:
Configure Command => './configure' '--enable-soap'
soap
Soap Client => enabled
Soap Server => enabled
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400
Am I just accessing SoapClient wrongly? Or is something more sinister, afoot?
TIA
Rick