[ Campaign Classic ] - Web Service call via REST | Community
Skip to main content
Clodo
Employee
Apr 14, 2022 8:36 PM UTC
Solved

[ Campaign Classic ] - Web Service call via REST

Hi AC Community 

 

I'd like to know why Adobe Campaign API does not support REST web service call and only SOAP as per documentation.

 

Searching for a solid reason to share to one of my customers 

 

Thank you

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Marcel_Szimonisz
Marcel_SzimoniszAccepted solution
New Participant
Apr 15, 2022 8:04 AM UTC

Hello @clodo,

you can build REST over SOAP by createing JSSP page in "Dynamic JavaScript pages":

 

    <%@ page import="/nl/core/shared/nl.js"%>
    <%
    loadLibrary("xtk:common.js");
    loadLibrary("xtk:shared/json2.js");
    NL.require('/nl/core/shared/xtk.js')
    .require("/nl/core/api.js")
    .require('/nl/core/jsspcontext.js')

 NL.API.init(request, response, {
    jsonOutput: true
    }, function(jsspContext) {
            response.addHeader("Pragma", "no-cache")
            response.addHeader("Cache-Control", "no-cache");
            response.addHeader("Expires", new Date().toGMTString());
            
            //do something resty
            
    });
%>

Also take a look at other pages in there for inspiration and also take a look at the 'nl/core/api.js'

 

Marcel Szimonisz

MarTech Consultant
for more tips visit my blog
https://www.martechnotes.com/

7 replies

David_Loyd
Employee
Apr 15, 2022 1:15 PM UTC

REST came out around 2000. Neolane (Adobe Campaign Classic) was founded/created in 2001. REST was simply not mature enough and SOAP was the work horse of the day. 

 

Adobe Campaign Standard has some REST options. 

Adobe Journey Optimizer is completely REST based.

Translate
Clodo
ClodoAuthor
Employee
Apr 26, 2022 2:58 PM UTC

Hi Dloyd

 

That's really helpful information.

 

Really appreciate that

Translate
Marcel_Szimonisz
Marcel_SzimoniszAccepted solution
New Participant
Apr 15, 2022 8:04 AM UTC

Hello @clodo,

you can build REST over SOAP by createing JSSP page in "Dynamic JavaScript pages":

 

    <%@ page import="/nl/core/shared/nl.js"%>
    <%
    loadLibrary("xtk:common.js");
    loadLibrary("xtk:shared/json2.js");
    NL.require('/nl/core/shared/xtk.js')
    .require("/nl/core/api.js")
    .require('/nl/core/jsspcontext.js')

 NL.API.init(request, response, {
    jsonOutput: true
    }, function(jsspContext) {
            response.addHeader("Pragma", "no-cache")
            response.addHeader("Cache-Control", "no-cache");
            response.addHeader("Expires", new Date().toGMTString());
            
            //do something resty
            
    });
%>

Also take a look at other pages in there for inspiration and also take a look at the 'nl/core/api.js'

 

Marcel Szimonisz

MarTech Consultant
for more tips visit my blog
https://www.martechnotes.com/

Translate
Clodo
ClodoAuthor
Employee
Apr 26, 2022 2:50 PM UTC

Thanks Marcel 

it really helps

Translate