Question
How to connect to a JSON REST service in PEGA 6.1 SP2?
Hello,
To adhere to firmwide policies, our interface partner is converting an existing soap service to a JSON based REST service. The only possible way to connect to a REST service in PEGA 6.1 is through Connect-Http rule. I found one relevant post but i did not get a clear picture on what this requirement entails. Could anyone please list out all the necessary steps needed to achieve this requirement? Our application is divest and hence we are not planning for a PEGA upgrade.
Thanks,
Sravya
You will have to write your own JSON parser and streamer, perhaps by leveraging a third-party library such as Jackson. You could create two RUFs - to convert JSON to Clipboard and vice-versa. You will have to configure your HTTP connector such that the response is mapped to a single-value property which your RUF takes as input along with the target ClipboardPage you need to map the response to. Likewise, the streamer RUF takes ClipboardPage as input and outputs a string containing the JSON. This string can be copied to the parameter page or a temp property and referenced in the HTTP connector request tab.