Page 1 of 1

Error when creating SoapClient object

Posted: Mon May 18, 2009 7:00 am
by nandanak
I wanted to create a SoapClient object, I used following code, but when I run this code following error is apppear,

Error: Class SoapClient not found,

My PHP version is 5.2.6, how can I overcome this ?

$client = new SoapClient('http://api.google.com/GoogleSearch.wsdl');

Re: Error when creating SoapClient object

Posted: Tue May 19, 2009 3:33 pm
by Darhazer
You have to enable the Soap extension.

What is your OS and if it is Windows what you are using as a server (I mean the bundles like xamp, wamp, or installed everything separatelly)?

Re: Error when creating SoapClient object

Posted: Tue May 19, 2009 3:36 pm
by John Cartwright
Moved to Installation and Configuration.