SOAP Connection to Adobe Campaign Classic. What about sessiontoken ? | Community
Skip to main content
tristanr3227636
Level 2
May 8, 2018
Solved

SOAP Connection to Adobe Campaign Classic. What about sessiontoken ?

  • May 8, 2018
  • 6 replies
  • 8418 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by tristanr3227636

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

6 replies

Marcel_Szimonisz
Community Advisor
Community Advisor
May 8, 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
Level 2
May 9, 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

Marcel_Szimonisz
Community Advisor
Community Advisor
May 9, 2018

Have you read the documentation?

Web service calls

+

SOAP in JAVA

Marcel

tristanr3227636
tristanr3227636AuthorAccepted solution
Level 2
May 11, 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

Level 3
November 23, 2019

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

Marcel_Szimonisz
Community Advisor
Community Advisor
November 29, 2019

Hello

WSDL is XML