Error when creating SoapClient object

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
nandanak
Forum Newbie
Posts: 1
Joined: Mon May 18, 2009 6:50 am

Error when creating SoapClient object

Post 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');
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Error when creating SoapClient object

Post 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)?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Error when creating SoapClient object

Post by John Cartwright »

Moved to Installation and Configuration.
Post Reply