Page 1 of 1

Can't find SoapClient class on Debian with PHP5

Posted: Sun May 15, 2005 1:51 pm
by hthb
Hi.

I am using php5 on debian. I can't find the soapclient class. I have done apt-get install php5-soap, and I have the newest package.

---

sudo apt-get install php5-soap
Reading Package Lists... Done
Building Dependency Tree... Done
php5-soap is already the newest version.

---

locate soap

/usr/lib/php5/20041030/soap.info
/usr/lib/php5/20041030/soap.so
/usr/share/doc/php5-soap
/usr/share/doc/php5-soap/changelog.Debian.gz
/usr/share/doc/php5-soap/copyright
/usr/share/doc/php5-soap/CREDITS
/usr/share/doc/php5-soap/package.xml
/usr/share/doc/php5-soap/TODO.gz
/usr/share/doc/php5-soap/TODO.old
/usr/share/lintian/overrides/php5-soap
/var/cache/apt/archives/php5-soap_5.0.4-0.2_i386.deb
/var/lib/dpkg/info/php5-soap.list
/var/lib/dpkg/info/php5-soap.md5sums
/var/lib/dpkg/info/php5-soap.postinst
/var/lib/dpkg/info/php5-soap.prerm

---

locate Soap

<nothing>

---

locate SOAP

<nothing>

---

Where is the class? It is supposed to be included natively in php5 but I get errors.

Posted: Sun May 15, 2005 4:53 pm
by timvw
you mean that you have installed a package with the soap extension. You can read everything about php extensions at http://pecl.php.net.

The most important in de the debian package, is thus the extension, which is available (/usr/lib/php5/20041030/soap.so). Now you need to edit your php.ini and make sure that extension is loaded. Once you have done that you can use the functiosn that are mentionned in http://www.php.net/soap

Posted: Sun May 15, 2005 5:19 pm
by hthb
Hi.

Yeah you were right... well almost. I had extension=soap.so but the extension_dir line was commented out. After I uncommented it, it worked.

Thanks for your help.