SOAP Connection to Adobe Campaign Classic. What about sessiontoken ?

tristanr3227636

08-05-2018

Hi all,

I have now a Connection to a test instance of Adobe Campaign, I can sucessfully logon with my user credentials to this instance,

With the help of this article Web service calls I want to create an interface in Java, JavaScript or another language.

I'm using now Eclipse as an IDE.

But I have the Problem to find out the exact JavaScript Framework or Java library.

In this example an object "HttpSoapConnection" or "SoapService" is  be used.

var cnx = new HttpSoapConnection("https://serverURL/nl/jsp/soaprouter.jsp");

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

Can anybody give me an hint, where I can find this object ?

Or can give me a Code snippet ?

Many thanks in advance.

Tristan

Accepted Solutions (1)

Accepted Solutions (1)

tristanr3227636

11-05-2018

Hi Marcel,

now I Have solved me issue:

with the url "https://myserver/nl/jsp/schemawsdl.jsp?schema=xtk:session"

I got the wsdl file.

With the tool "wdl2java" 'm able now to create the Subs and Skeletons of the Java classes for this issue.

With the tool "SOAPUI" you can test the SOAP Services very easily.

Cheers

Tristan

Answers (5)

Answers (5)

MarcelSzimonisz

MVP

08-05-2018

Hello tristanr32276360​,

Look at the documentation examples for api calls:

Web service calls

//from above documentation

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("", "admin", "pwd", <param/>);

var sessionToken = res[0];

var securityToken = res[2];

Hope this helps,

Marcel

tristanr3227636

09-05-2018

Hi, thank you very much.

I want to use the SOAP Service outside from Adobe Campaign, I Need no Workflow process.

So my question is:

Can I use Axis or Axis 2 Framework inside a Java Project ?

Cheers

Tristan