Question

1
Replies
973
Views
sambildikar Member since 2008 13 posts
State Farm Insurance
Posted: April 14, 2016
Last activity: April 14, 2016
Closed

How should we move the JSON String into a page for REST Call

 

Pega version - 7.1.8

We have a rest service which is expecting a JSON String as request during POST.

 

The data is being mapped to clipboard by our application as

 

SampleApp-Data-Product

    userID

    checkoutEntry

    sourceChannelCode 

    ProductDetailsTO (Page of class SampleApp-Data-Product-ProductDetailsTO)

           policyOwnerClientID     

           paymentMode

           policyInformation (Page of class SampleApp-Data-Product-ProductDetailsTO-policyInformation)

                  policyNumber

                  effectiveDate

    L1ProductDetailsTO (Page of class SampleApp-Data-Product-L1ProductDetailsTO)

    L2ProductDetailsTO (Page of class SampleApp-Data-Product-L2ProductDetailsTO)

 

The REST service is in the class PegaSample-Data-SampleRESTCall

In the REST service under the method TAB under POST we have the

Map From -> as JSON and

Map From Key -> as Request (Request is a page of class PegaSample-Data-SampleRESTCall_Request)

Can we read from the clipboard pages and create a JSON string in the Request to pass to the REST service.

The service expects the Request String as –

a.imp.financials.checkoutintegration.beans.productdetails.Product@30f52002[userId=52NY682GRYC,checkoutEntry=1,sourceChannelCode=Associate,L1ProductDetailsTO=[],ProductDetailsTO=[aa.imp.financials.checkoutintegration.beans.productdetails.ProductDetailsTO@2d087c6a[policyOwnerClientId=52NY682GRYC,paymentMode=Annual,policyInformation=aa.imp.financials.checkoutintegration.beans.productdetails.PolicyInformation@8202a3f[policyNumber=40106151,effectiveDate=Sun Sep 18 00:00:00 CDT 2016]],L2ProductDetailsTO=[]]

Message was edited by: Lochan to add Category

Data Integration System Administration
Moderation Team has archived post
Share this page LinkedIn