Fatal error: Class 'SoapClient' not found... please help


I'm trying to set up a subscribewithcustom fields, with the php5 code provided by Kaiser Shahid (sample code provided on the API - PHP page. I'm running on PHP5.2.x on Dreamhost servers. When I hit submit I get this error:

Fatal error: Class 'SoapClient' not found in /home/.bellablender/jlnail/jonathannail.com/email/nailbox_subscribe.php on line 16

On line 16, I have this call:
$client = new SoapClient("http://app.campaignmonitor.com/api/api.asmx?wsdl", array('trace' => 1));

Any ideas?



jlnail, 9 years ago

Friend of mine tells me that he thinks the SOAP library isn't loading. I thought the ap.asmx?wsdl was the library call. Guess not.

Mathew Mathew, 9 years ago

Are you getting the XML at http://app.campaignmonitor.com/api/api.asmx?wsdl ? It is showing for me.

Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
jlnail, 9 years ago

Yes, I'm seeing the XML.

Actually we realized that SOAP isn't installed/activated in the PHP on my server. He's gonna help me do a new build later on. For now I'm going to use the regular POST to add new subscribers to my list.


See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free