i create a table, a method, and js, so that i can get the wsdl file when login https://server/nl/jsp/schemawsdl.jsp?schema. and then use SOAP protocol call the js, how to use restful api to call Customize API in ACC not the SOAP protocol ?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @wankang,
To create a table, method, and JavaScript (JS) code to retrieve the WSDL file and use the SOAP protocol to call the JS code, and then use a RESTful API to call a custom API in Adobe Campaign Classic (ACC), you can follow the steps below:
Hello @wankang,
SOAP is the native web service feature and REST is not available.
Although you can create REST over SOAP method if you want with JSSP pages and with using
NL.API.init
take a look at the example here:
https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/campaign-classic-w...
Marcel Szimonisz
MarTech Consultant
for more tips visit my blog
https://www.martechnotes.com/
Views
Replies
Total Likes
how can i called Dynamic JavaScript pages via external system? means i create a Dynamic JavaScript pages but how to Trigger? like a js code,
Views
Replies
Total Likes
Hi @wankang,
To create a table, method, and JavaScript (JS) code to retrieve the WSDL file and use the SOAP protocol to call the JS code, and then use a RESTful API to call a custom API in Adobe Campaign Classic (ACC), you can follow the steps below:
could u give a example, step4 may be using js to create SOAP request, but how to tranfer request data to ACC, before i use SOAP, for step5, Create a RESTful API in AC, is "AC" means ACC or?
Views
Replies
Total Likes
Here is an example of how to use JavaScript to create a SOAP request-
var soapRequest = '<?xml version="1.0" encoding="utf-8"?> \
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> \
<soap:Body> \
<GetUserDetails xmlns="http://tempuri.org/"> \
<userId>123</userId> \
</GetUserDetails> \
</soap:Body> \
</soap:Envelope>';
// To transfer the SOAP request data to ACC, you would typically use an HTTP POST request to send the data to the ACC server.
Here's an example using jQuery:
$.ajax({
url: 'https://your-acc-server.com/your-soap-endpoint',
type: 'POST',
contentType: 'text/xml',
data: soapRequest,
dataType: 'xml',
success: function(response) {
console.log('SOAP response:', response);
// Parse and process the SOAP response data
// ...
},
error: function(xhr, status, error) {
console.error('SOAP request failed:', error);
}
});
On a side note, "AC" means "Adobe Campaign" (sometimes abbreviated as "AC"); when I said "Create a RESTful API in AC", I meant creating a RESTful API within Adobe Campaign.
Views
Replies
Total Likes
Views
Replies
Total Likes
Done.
Views
Likes
Replies