" /> WebRequest node Save Session - Genesys CTI User Forum

Author Topic: WebRequest node Save Session  (Read 1715 times)

Offline vtpeco

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
WebRequest node Save Session
« on: July 26, 2017, 06:05:13 PM »
Advertisement
I am using a WebRequest node to access a Web Service. This works fine but when I call the same Web Service again, it initiates a new request....the session is not maintained with the original Web Request.

Is it possible to maintain the initial web session in subsequent requests?  Will the WebService node do this?

Thanks, Val.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: WebRequest node Save Session
« Reply #1 on: July 26, 2017, 10:20:21 PM »
What you are using? If GVP then you can modify the WebRequest.jsp file and catch the ASP Session ID and then if it is a second call attach it as custom header. NO direct way to do it.


If you are using URS then no clue how to do it

Offline vtpeco

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: WebRequest node Save Session
« Reply #2 on: July 27, 2017, 02:35:02 PM »
Thanks for the reply. I am using GVP.  I did locate a getWebRequestData_jsp.java file in my Composer project, is this the file you're referring to?

It appears the session is already gotten but maybe not saved? 

    try {
      response.setContentType("application/json;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
[color=red]      session = pageContext.getSession();[/color]
      out = pageContext.getOut();
      _jspx_out = out;

How would I then make it accessible to my Callflow (WebRequest node)?

Thanks for the help.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: WebRequest node Save Session
« Reply #3 on: July 28, 2017, 02:10:11 PM »
Hi,
What I ment is the WebRequest.jsp page under 'include' folder. You need to alter the code to meet your needs