Show Menu

About web services

Definition of Adobe Campaign APIs

The Adobe Campaign application server was designed for openness and easy integration with increasingly diverse and complex company information systems.
Adobe Campaign APIs are used in JavaScript within the application and in SOAP outside of it. They make up a library of generic functions that can be enriched. For further information, refer to Implementing SOAP methods .
The number of authorized Engine Calls per day varies upon your license contract. For more on this, refer to this page . A list of all the APIs including their full description is available in this dedicated documentation .


Before using the Adobe Campaign APIs, you need to be familliar with the following topics:
  • Javascript
  • SOAP protocol
  • Adobe Campaign datamodel

Using Adobe Campaign APIs

Adobe Campaign uses two types of APIs:
  • Generic data acces APIs for querying the datamodel data. Refer to Data oriented APIs .
  • Business specific APIs that let you act on each object: deliveries, workflows, subscriptions, etc. Refer to Business oriented APIs .
In order to develop APIs and interact with Adobe Campaign, you need to be familiar with your datamodel. Adobe Campaign lets you generate a complete description of the base. Refer to Description of the model .

SOAP calls

The SOAP protocol lets you invoke API methods, via the rich client, third-party applications using webservices, or JSP using these methods natively.
The structure of a SOAP message is as follows:
  • an envelope which defines the structure of the message,
  • an optional header,
  • a body containing the information about the call and the response,
  • error management that defines the error condition.

Resources and exchanges

The following schema shows the various resources involved in the use of Adobe Campaign APIs:

Example of a SOAP message on the 'ExecuteQuery' method

In this example, a SOAP query invokes the "ExecuteQuery" method, which takes a character string as a parameter for authentication (session token) and an XML content for the description of the query to be executed.
For further information, refer to ExecuteQuery (xtk:queryDef) .
The WSDL description of this service is completed in the example shown here: Web service description: WSDL .

SOAP query

<?xml version='1.0' encoding='ISO-8859-1'?>
  <SOAP-ENV:Envelope xmlns:xsd='' xmlns:xsi='' xmlns:ns='' xmlns:SOAP-ENV=''>
      <ExecuteQuery xmlns='urn:xtk:queryDef' SOAP-ENV:encodingStyle=''>
        <__sessiontoken xsi:type='xsd:string'/>
        <entity xsi:type='ns:Element' SOAP-ENV:encodingStyle=''>
          <queryDef firstRows="true" lineCount="200" operation="select" schema="nms:rcpGrpRel" startLine="0" startPath="/" xtkschema="xtk:queryDef">

The <soap-env:envelope> element is the first element of the message representing the SOAP envelope.
The <soap-env:body> element is the first child element of the envelope. It contains the description of the message, i.e. the content of the query or the response.
The method to be invoked is entered in the <executequery> element from the body of the SOAP message.
In SOAP, the parameters are recognized by order of appearance. The first parameter, <__sessiontoken> , takes the authentication chain, the second parameter is the XML description of the query from the <querydef> element.

SOAP response

<?xml version='1.0' encoding='ISO-8859-1'?>
  <SOAP-ENV:Envelope xmlns:xsd='' xmlns:xsi='' xmlns:ns='' xmlns:SOAP-ENV=''>
      <ExecuteQueryResponse xmlns='urn:xtk:queryDef' SOAP-ENV:encodingStyle=''>
        <pdomOutput xsi:type='ns:Element' SOAP-ENV:encodingStyle=''>
          <rcpGrpRel-collection><rcpGrpRel group-id="1872" recipient-id="1362"></rcpGrpRel></rcpGrpRel-collection>

The result of the query is entered from the <pdomoutput> element.

Error management

Example SOAP error response:
<?xml version='1.0' encoding='ISO-8859-1'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV=''>
      <faultstring>Error while executing 'Write' of the 'xtk:persist'.</faultstring> service
      <detail>ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert duplicate key row in object 'XtkOption' with unique index 'XtkOption_name'. SQLSTate: 23000
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated. SQLSTate: 01000 Cannot save the 'Options (xtk:option)' document </detail>

The <soap-env:fault> element in the body of the SOAP message is used to convey the error signals arising during the processing of the Web service. This is composed of the following sub-elements:
  • <faultcode> : indicates the type of error. The error types are:
    • "VersionMismatch" in the event of incompatibility with the SOAP version used,
    • "MustUnderstand" in the event of a problem in the message header,
    • "Client" in the event that the client is missing some information,
    • "Server" in the event that the server has a problem executing the processing.
  • <faultstring> : message describing the error
  • <detail> : long error message
The success or failure of the service invocation is identified when the <faultcode> element is verified.
All Adobe Campaign Web services handle errors. It is therefore strongly recommended to test each call in order to handle returned errors.
Example of error handling in C#:
  // Invocation of method
catch (SoapException e)
  System.Console.WriteLine("Soap exception: " + e.Message);        
  if (e.Detail != null)

URL of Web service server (or EndPoint)

To submit the Web service, the Adobe Campaign server that implements the corresponding service method must be contacted.
The server URL is as follows:
With <server> the Adobe Campaign application server ( nlserver web ).