Expand my Community achievements bar.

SOLVED

SOAP Connection to Adobe Campaign Classic. What about sessiontoken ?

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 2

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

View solution in original post

6 Replies

Avatar

Community Advisor

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

Avatar

Level 2

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

Avatar

Correct answer by
Level 2

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

Avatar

Level 4

Hi Tristan,

When I try to download the WSDL from https://myserver/nl/jsp/schemawsdl.jsp?schema=xtk:session , I got the XML format opened in the browser instead of downloading WSDL file. Do you need to convert XML to WSDL?

Thanks,

Jay