Close popover
Frederi Pochard (POCHF)
Senior System Architect
Pegasystems Inc.
POCHF Member since 2009 20 posts
Posted: July 13, 2016
Last activity: July 15, 2016

Is this possible to call an HTTP-based web service from JavaScript? And how?


So here is the situation:

We have to embbed an AS400 application in a specific tab on the View 360 of a PCSi-based application. And we're doing this by using an iFrame linked to an URL allowing connecting to Convertigo, a software which is"webizing" AS400 applications.

Doing this we have to manage Convertigo "sessions". Such a session is created when the iFrame is displayed, unless there is an already existing and idle one for the current user. When we stop using a session we have to turn it idle (so it is reusable) AND we have to "reset" it. Finally when the operator is logging out, we have to close all existing sessions.

And now here is the issue:

As described, a session is created when displaying a iFrame containing a reference to a Convertigo URL. That is to say, the session is created from the browser on the client side (and not from a rule running on the Pega server side). This is fundamental as Convertigo sessions are basically identified using the JSession ID cookie.

For this reason, when it comes to resetting or closing a Convertigo session, we have to call HTTP-based web services and we have to call them from the client side browser. We cannot use Connect-HTTP rules as these rules will be running on the server and will not be using the same JSession ID that is corresponding to the browser instance from which the initial call creating the Convertigo session was made.

So we need to be able to call those HTTP web services from the client side browser. Probably using JavaScript. Question is: how to do that (unless there is another way of course)?

Thanks for your help.

***Updated by moderator: Lochan. Removed user added #helpme tag. Apologies for confusion, shouldn't have been an end-user option.

Pega Customer Service Data Integration
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.