PHP SoapClient problem / WAMP load extension problem
Posted by: mountainboiler1995 (63.76.213.---)
Date: May 22, 2008 05:06PM

I am trying to build a PHP SOAP Client, using the SOAP extension. I am aware of NuSOAP and WSF/PHP, but was trying to stick with what came in WampServer.

I have a file soap_test.php:

<?php
$client = new SoapClient("[soap.amazon.com]winking smiley;
var_dump($client->__getFunctions());
?>

which results in: Fatal error: Class 'SoapClient' not found in C:\wamp\www\...

At first from the CLI, I got the same error, but I cured that by editing C:\wamp\bin\php\php5.2.6\php.ini for PHP (uncomment extension=php_soap.dll)

When I tried to do the same for the web server, I still get the same error. I tried both php.ini and phpForApache.ini.
C:\wamp\bin\apache\apache2.2.8\bin\php.ini
C:\wamp\bin\php\php5.2.6\phpForApache.ini

Any ideas for other things I should look at?

Options: ReplyQuote
Re: PHP SoapClient problem / WAMP load extension problem
Posted by: toivo (---.nsw.bigpond.net.au)
Date: May 23, 2008 08:01PM

Hi,

Basically you were doing the right thing by enabling php_soap.dll in C:\wamp\bin\apache\apache2.2.8\bin\php.ini.

However, all you should have to do is to click the WAMP icon in the System Tray, then PHP - PHP extensions - php_soap if there is no tick in front of php_soap.

If you want to use SOAP from a command line (CLI) script, you need to edit c:\wamp\bin\php\php5.2.5\php.ini, not phpForApache.ini.

Regards,

toivo
Sydney, Australia

Options: ReplyQuote
Re: PHP SoapClient problem / WAMP load extension problem
Posted by: mountainboiler1995 (63.76.213.---)
Date: May 28, 2008 03:16PM

Thanks - that resolved the funkiness I was observing.

Options: ReplyQuote
Re: PHP SoapClient problem / WAMP load extension problem
Posted by: jdgiotta (---.mg.themeganet.com)
Date: February 19, 2009 04:10PM

I have a similar problem, "Fatal error: Class 'SoapClient' not found in C:\wamp\www\..."
I checked the php.ini and extension=php_soap.dll is uncommented.

Are there any other steps I should take?

Options: ReplyQuote
Re: PHP SoapClient problem / WAMP load extension problem
Posted by: yfastud (Moderator)
Date: February 19, 2009 04:59PM

you have to enable it through wamp tray icon ;-)

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: PHP SoapClient problem / WAMP load extension problem
Posted by: jdgiotta (---.mg.themeganet.com)
Date: February 19, 2009 05:09PM

yfastud Wrote:
-------------------------------------------------------
> you have to enable it through wamp tray icon ;-)


Yes, well, I did that first, but when it didn't work I checked the .ini file.

Options: ReplyQuote
Re: PHP SoapClient problem / WAMP load extension problem
Posted by: jdgiotta (---.mg.themeganet.com)
Date: February 19, 2009 08:42PM

I think my problem is that php cli isn't aware of the modules
>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
date
dom
filter
ftp
gd
hash
iconv
json
libxml
mbstring
mysql
mysqli
odbc
pcre
PDO
pdo_mysql
Reflection
session
SimpleXML
SPL
SQLite
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib

No Soap, Pepsi

Options: ReplyQuote
Re: PHP SoapClient problem / WAMP load extension problem
Posted by: indy80s (---.centertel.pl)
Date: February 26, 2010 01:07PM

I added this to php.ini and it works:

extension=php_soap.dll

Tray menu didnt show the php_soap extension option but the dll was available in wamp 1.7.0 installation.

Options: ReplyQuote
Re: PHP SoapClient problem / WAMP load extension problem
Posted by: buminda (124.43.90.---)
Date: May 19, 2012 08:34PM

Thanks , this worked for me as well !!

Options: ReplyQuote


Sorry, only registered users may post in this forum.