Hi,
Am trying to use nuSoap to add a subscriber to Campaign Monitor and getting the following error:
2006-08-08 10:54:36.996572 soapclient: No data for operation: Subscriber.AddWithCustomFields
2006-08-08 10:54:36.996681 soapclient: operation 'Subscriber.AddWithCustomFields' not present. |
Here is the code I'm using:
$envelope = '<Subscriber.AddWithCustomFields xmlns="http://app.campaignmonitor.com/api/">
<ApiKey>99999999999</ApiKey>
<ListID>88888888</ListID>
<Email>myemail@domain.com</Email>
<Name>My Name</Name>
<CustomFields>
<SubscriberCustomField>
<Key>[company]</Key><Value>My Company</Value>
</SubscriberCustomField>
<SubscriberCustomField>
<Key>[position]</Key><Value>King of the Hill</Value>
</SubscriberCustomField>
</CustomFields>
</Subscriber.AddWithCustomFields>';
$this->soap = new soapclient( 'http://app.campaignmonitor.com/api/api.asmx?WSDL', true );
$this->soap->call( 'Subscriber.AddWithCustomFields', $envelope, '', 'Subscriber.AddWithCustomFields' ); |
Any thoughts? I've tried a number of variations on this theme with various errors coming through. The example CampaignMonitor provide doesn't work either.
Any thoughts or hints would be greatly appreciated.
Thanks,
Af.
[/code]