cancel
Showing results for 
Search instead for 
Did you mean: 

Service Operation Identification Failure using API to create campaign

Occasional Contributor

Service Operation Identification Failure using API to create campaign

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.

4 REPLIES 4
CTCT Employee

Re: Service Operation Identification Failure using API to create campaign

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

Occasional Contributor

Re: Service Operation Identification Failure using API to create campaign

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>/&lt;html/>/n/&lt;body/>Hello/n /&lt;//body/>/&lt;//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>

 

CTCT Employee

Re: Service Operation Identification Failure using API to create campaign

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>&lt;html&gt;&lt;body&gt;Hello!&lt;/body&gt;&lt;/html&gt;</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

Occasional Contributor

Re: Service Operation Identification Failure using API to create campaign

Thanks Shannon. That did the trick for me.

Many Thanks  !!