Idea

1
Replies
47
Views
Harsh_Soni Member since 2015 6 posts
Infosys LTD
Posted: 4 months ago
Last activity: 3 months 2 weeks ago

Capture SOAP Request/Response Using Data Page having source as Connect-Soap

Business requirement:

Capture soap response and store in DB when user is interacting with Autocomplete control on UI whose source is Data Page which is sourced via Connect-Soap.

Configuration:

Autocomplete Control on UI

  1. Source is Data_Page
  2. Data page is sourced using Connector which is Connect-Soap

As soon as user start typing in Auto complete control call is made using input values and results starts appearing on screen. Meanwhile at Back-end system should capture all the request and response happening from autocomplete control.

Solution:

  • Whenever Soap Connection is established from Pega , OOTB activity InvokeAxis2 of ruleset Pega-IntegrationEngine get executed.
  • Save As this activity to your Application Ruleset.
  • Define a Local Variable in Parameter tab of Activity Rule for e.g. ResponseXML
  • Add the Java Step at the end of Activity.
  • And add below Java code to capture response in Local variable.

List<String> list = (List)resParamVals;

StringBuilder responseXML = new StringBuilder();

for (String s : list){      responseXML.append(s);   responseXML.append("\t");    }

ResponseXML = responseXML.toString();

Once you have the response in Local Variable which in our case is ResponseXML add another Property-Set step and assign the value of local variable to Clipboard property.

Pega Platform 7.3.1 Data Integration Java and Activities Data Integration Cross-Industry Lead System Architect
Share this page LinkedIn