Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Highlighted
legomac Valued Contributor.
Valued Contributor.
178 views

Is it possible to maintain a session using the HPSM REST API?

The only documentation even close is on session mamangement via SOAP.

I have tried multiple ways (sending Keep-Alive, setting JSESSIONID...if it comes back).

Has anyone ever succefully maintained a session using the rest api?

Tags (3)
0 Likes
2 Replies
Luis_G_SM Super Contributor.
Super Contributor.

Re: Is it possible to maintain a session using the HPSM REST API?

Hello Lego

was the document that you saw the web service guide.

https://softwaresupport.softwaregrp.com/doc/KM01314028?fileName=HP_Service_Manager_Web_Services_codeless.pdf

if you haven't, you will have a section for a "Keep-Alive" method.

Hope this helps.

BR!

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
0 Likes
legomac Valued Contributor.
Valued Contributor.

Re: Is it possible to maintain a session using the HPSM REST API?

Thanks, Luis. But I have read that, the examples and information are for the SOAP service, not REST. I have read probably every word available on the sight (Web Service Guide, Developers Guide, Tailoring, etc, etc, etc).  

I have tried forcing the Keep-Alive header, but am not receiving a JSESSIONID on several of the calls.  On the rare occasion that the response does contain a Set-Cookie, adding the cookie in subsequent requests does not work and the request is denied by the server.

Is there a SME for the REST web service I can get in contact with?  

On another note, the documentation on the REST service is severly lacking and should be updated to add clarity.

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.