Highlighted
Super Contributor.
Super Contributor.
79 views

test web service SOAP UI get sessionID

Jump to solution

Hello,

I am trying to test the Silk Central web service using SOAP UI.

In almost every request, there is sessionID, if I check in Documentation, the sessionID is the same with web token but the type is String instead of Long.

How can I get the sessionID?

Tags (3)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi @garecanbp,

 

You can get the web API token as follows:

- login to SC as user which you want the token for
- click on User Settings
- in section Web-Service Token click on Generate Token, if confirmation box comes up click Yes
- click Copy Token to Clipboard
- click Save (important)

 

To get a session ID use the logonUser SOAP call:

  long sessionID = systemService.logonUser("username", "password");

 

Or the login REST API call:

  http://mySCHost:19120/Services1.0/login  with username and password

 

You can find more about web-service authentication here:

https://www.microfocus.com/documentation/silk-central/206/en/silkcentral-help-en/SCTM-07610CAE-SESSIONHANDLING-CON.html

 

Regards,

Hubert

View solution in original post

0 Likes
1 Reply
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi @garecanbp,

 

You can get the web API token as follows:

- login to SC as user which you want the token for
- click on User Settings
- in section Web-Service Token click on Generate Token, if confirmation box comes up click Yes
- click Copy Token to Clipboard
- click Save (important)

 

To get a session ID use the logonUser SOAP call:

  long sessionID = systemService.logonUser("username", "password");

 

Or the login REST API call:

  http://mySCHost:19120/Services1.0/login  with username and password

 

You can find more about web-service authentication here:

https://www.microfocus.com/documentation/silk-central/206/en/silkcentral-help-en/SCTM-07610CAE-SESSIONHANDLING-CON.html

 

Regards,

Hubert

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.