Web Service (SOAP) call in Adobe Campaign v6

Avatar

Avatar

Senthil24

Avatar

Senthil24

Senthil24

28-07-2017

HI,

Taking reference from https://docs.campaign.adobe.com/doc/AC6.1/en/CFG_API_Web_service_calls.html  we are trying to invoke a SOAP API from a javascript , We have created a jsp page and are using the following code.  We are using Message Centre Agent's userid and password from Adobe campaign. We are not getting any response for this .Please help

<%@page contentType="text/html;charset=UTF-8"%><HTML>

<HEAD>

<TITLE>Web Services Test Client</TITLE>

<script type="text/javascript">

function test(){

  alert('test');

  var cnx = new HttpSoapConnection("http://<server-url>/nl/jsp/soaprouter.jsp");

  var session = new SoapService(cnx, 'urn:xtk:session');

  session.addMethod("Logon", "xtk:session#Logon",

                      ["sessiontoken", "string", "Login", "string", "Password", "string", "Parameters", "NLElement"],

                      ["sessionToken", "string", "sessionInfo", "NLElement", "securityToken", "string"]);

  var res = session.Logon("", "username", "password", <param/>);

  var sessionToken = res[0];

  var securityToken = res[2];

  alert(sessionToken);

  alert(securityToken);

  cnx.addTokens(sessionToken, securityToken);

  var query = new SoapService(cnx, 'urn:xtk:queryDef');

  query.addMethod("ExecuteQuery", "xtk:queryDef#ExecuteQuery",

                      ["sessiontoken", "string", "entity", "NLElement"],

                      ["res", "NLElement"]);

}

</script>

</HEAD>

<BODY onload="return test();">

hi

</BODY>

</HTML>

Regards

Senthil

View Entire Topic

Avatar

Avatar

Senthil24

Avatar

Senthil24

Senthil24

27-08-2017

Hi David,

Thanks for replying.

could you pls elaborate. which workflow ? and how that workflow can be accessed from outside (like from a web site)

Thanks

Senthil