NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
SOAP call to Campaign Monitor ...


Joined: 07 Aug 2006
Posts: 2
Reply with quote
Hi,

Am trying to use nuSoap to add a subscriber to Campaign Monitor and getting the following error:
Code:
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:
Code:

$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]
View user's profileFind all posts by Afro BoySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7901
Reply with quote
why not to contact them and ask for a working sample first?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 07 Aug 2006
Posts: 2
Reply with quote
Thanks for the response.

I have contacted CM and am still waiting for them to get back to me. I thought I might have better luck working with some experts here who use NuSoap.

Does the error I am getting appear to be something from the server end or is there something else I can try with my client request?

Thanks,
Af.
View user's profileFind all posts by Afro BoySend private message
SOAP call to Campaign Monitor ...
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic