William Rayer (willrayer)
Coutts Trustees

Coutts Trustees
willrayer Member since 2008 1 post
Coutts Trustees
Posted: February 29, 2016
Last activity: March 9, 2016
Posted: 29 Feb 2016 12:06 EST
Last activity: 9 Mar 2016 7:16 EST

Problem mapping Response data to clipboard for automatically generated SOAP connector

We use Pega 7.1.9 and I need SOAP Integration Connectors for about 50 web services. As proof of concept for the first web service, I use the Pega SOAP integration wizard to automatically create the Parse XML rule, the XML stream rule, the connector rule, the properties and classes. Then I create an activity with a "Connect-SOAP" step to call the web service, and when I run the activity the response data is stored as XML in a single text property. So far this works exactly as intended, the auto generated Parse XML rules are intended to deliver the Response as a single XML property.

My problem: I don't know how to extract the needed results from the XML response text. What I need is an activity, or internal Pega activity or Function that accepts the XML as 'input' and expands it into nested clipboard pages and properties (XML response is attached) I have tried:

  1. Inbuilt Pega activity XMLDocToPage - this runs without error, but it does not extract the properties from the XML. I think it expects the clipboard structure to be built beforehand, but I want the clipboard structure to be 'built' from the returned XML structure,
  2. Use a step with an Apply-Parse-XML rule, using the automatically generated Parse XML rule. This runs without error, but does not produce any output (eg it does not set up the properties). Again I think the auto generated Parse XML rule returns the response as a single XML value.

I know I can create individual Parse XML rules customized for the output of each web service. But this will take a long time for 50 web services, and the required clipboard structure is implicit in the returned XML. Is there any way of automatically building the clipboard structure to represent the XML response?

Data Integration
Moderation Team has archived post, 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.