Dear Support team,
I am trying to create a campaign in CTCT from Salesforce, and running in below error:
<?xml version="1.0" encoding="UTF-8"?><fault>
<faultstring>Service Operation Identification Failure</faultstring>
<detail>
<errorcode>26110</errorcode>
<trace>
Fault Name: ServiceOperationIdentificationFailure
Error Type: Default
Description: Service Operation Identification Failure
Service: LoadBalancer_HTTP_Check
Endpoint: loadbalancer_client
Operation (Client):
</trace>
</detail>
</fault>
I have constructed the POST http message and using oauth for authentication. Please help me here.
Hi,
Do you have access to the URI that you are POSTing to? That would help troubleshoot the error--this error is usually caused by hitting a URI that doesn't exist. The XML you are sending would also be helpful. (Please obscure your username for your security when posting the details for us to take a look.)
Best Regards,
Shannon W.
API Support Specialist
Shannon,
I am using below URI for posting message
https://api.constantcontact.com/ws/customers/{user-name}/campaigns
The XML Message is
<?xml version="1.0" encoding="UTF-8"?><entry xmlns="http://www.w3.org/2005/Atom"><id>http://api.constantcontact.com/ws/customers/username/campaigns/0</id><title type="text">My first Constant Contact email</title><updated>2011-04-25T13:53:04.243Z</updated><content type="application/vnd.ctct+xml"><Campaign xmlns="http://ws.constantcontact.com/ns/1.0/"><Name>Created via API</Name><Subject>News from xxxxxx</Subject><FromName>xxxxxxx gmail</FromName><ViewAsWebPage>NO</ViewAsWebPage><PermissionReminder>NO</PermissionReminder><OrganizationName>xxxxxxxx gmail</OrganizationName><OrganizationAddress1>0000 fremont ave</OrganizationAddress1><OrganizationAddress2 /><OrganizationAddress3 /><OrganizationCity>Fremont</OrganizationCity><OrganizationState>CA</OrganizationState><OrganizationInternationalState /><OrganizationCountry>US</OrganizationCountry><OrganizationPostalCode>95053</OrganizationPostalCode><IncludeForwardEmail>NO</IncludeForwardEmail><IncludeSubscribeLink>NO</IncludeSubscribeLink><EmailContentFormat>HTML</EmailContentFormat><EmailContent>/<html/>/n/<body/>Hello/n /<//body/>/<//html/></EmailContent><EmailTextContent>Hi There</EmailTextContent><FromEmail><Email id="http://api.constantcontact.com/ws/customers/username/settings/emailaddresses/1" /><EmailAddress>xxxxxxxxxx@gmail.com</EmailAddress></FromEmail><ReplyToEmail><Email id="http://api.constantcontact.com/ws/customers/username/settings/emailaddresses/1" /><EmailAddress>abcdefgh@gmail.com</EmailAddress></ReplyToEmail></Campaign></content><source><author><name>abcdefg</name></author></source></entry>
Hi,
The URI you were posting to is correct. I replaced a couple of things in your XML--it looks like the email contents were an issue, and you had the ViewAsWebpage node as "ViewAsWebPage" (whoever built our XML decided webpage was one word for camelcasing purposes, and your XML nodes must match exactly).
Try this, replacing username with your own, and verified_email@example.com with the verified email address in your account.
<?xml version="1.0"?> <entry xmlns="http://www.w3.org/2005/Atom"> <id>http://api.constantcontact.com/ws/customers/username/campaigns/0</id> <title type="text">My first Constant Contact email</title> <updated>2011-04-25T13:53:04.243Z</updated> <content type="application/vnd.ctct+xml"> <Campaign xmlns="http://ws.constantcontact.com/ns/1.0/"> <Name>Created via API 11062012</Name> <Subject>News from xxxxxx</Subject> <FromName>xxxxxxx gmail</FromName> <ViewAsWebpage>NO</ViewAsWebpage> <PermissionReminder>NO</PermissionReminder> <OrganizationName>xxxxxxxx gmail</OrganizationName> <OrganizationAddress1>0000 fremont ave</OrganizationAddress1> <OrganizationAddress2/> <OrganizationAddress3/> <OrganizationCity>Fremont</OrganizationCity> <OrganizationState>CA</OrganizationState> <OrganizationInternationalState/> <OrganizationCountry>US</OrganizationCountry> <OrganizationPostalCode>95053</OrganizationPostalCode> <IncludeForwardEmail>NO</IncludeForwardEmail> <IncludeSubscribeLink>NO</IncludeSubscribeLink> <EmailContentFormat>HTML</EmailContentFormat> <EmailContent><html><body>Hello!</body></html></EmailContent> <EmailTextContent>Hi There</EmailTextContent> <FromEmail> <Email id="http://api.constantcontact.com/ws/customers/username/settings/emailaddresses/1"/> <EmailAddress>verified_email@example.com</EmailAddress> </FromEmail> <ReplyToEmail> <Email id="http://api.constantcontact.com/ws/customers/username/settings/emailaddresses/1"/> <EmailAddress>verified_email@example.com</EmailAddress> </ReplyToEmail> </Campaign> </content> <source> <author> <name>abcdefg</name> </author> </source> </entry>
Best Regards,
Shannon W.
API Support Specialist
Thanks Shannon. That did the trick for me.
Many Thanks !!