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

Hiya,

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?

Thanks,

Jonathan

jlnail, 8 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, 8 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, 8 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.

Thanks!

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098