Idea
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
- Source is Data_Page
- 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.
Hi @Harsh_Soni,
Thank you for sharing your idea here in the Pega Collaboration Center (PCC)!
I have submitted this idea on your behalf in our internal system for feature enhancements and updated your post with the associated FDBK-ID. You can take this ID to your Account Executive for next steps.
Thanks and keep the ideas coming! Kayla | Moderator | Pega Collaboration Center