ServiceNow integration with Third Party application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2019 06:43 AM
Hello All,
We have a requirement where we need to integrate Servicenow with Third Party application which is IBM Resilient. IBM Resilient is not publicly accessible, so there are some challenges which we are facing.
Since Resilient is not on Public IP so need of MID server is must. But due to some security issue we will not install MID server and we have to use (AXWAY) API Management Gateway. Now we received final API from API Management team and configured Rest Message and set the Authentication as "Oauth 2.0".
Note: We are using Client ID and Client Secret id for Authentication
To establish connection with Resilient API we have to first call Session API which will consist of CSRF Token and JSESSION ID and we got status as 200 OK for Session API . Next step is to call another API which is Comments API which will be used to update worknotes or comment from ServiceNow to resilient.
But when we are calling the second API we need to pass that CSRF Token and Jsession ID which we received from Session API. But it seems its not working for us, it gives us a 401 error i.e "Invalid User name and password combo".
Please let us know if there are any other configuration need to be add in Servicenow which we may missing in our case.
Also is there any other way if we can achieve this kind of Integration when Application is on premise. (behind Firewall)
Please find attached code and let me know if any correction or suggestion.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2019 07:43 AM
I have a question. In your sendTaskNotes function, why didn't you include this r.setStringParameterNoEscape('Cookie', 'JSESSIONID=1714127B75152244032417A76DF5654F');?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2019 02:59 AM
Hello,
I forgot to mention that we received CSRF Token but we are not able to get JESSION ID from that application. Would like to know how to parsed JSESSION ID from Cookie which we received from third party application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2019 05:43 AM
What format are you getting the response xml or json?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2019 06:25 AM