Discussion
State Farm Insurance
US
Last activity: 4 Oct 2018 13:54 EDT
Creating a RESTful service through PRPC in Pega 7.1.8
I would like to create a consumable REST service which is exposed to an external application. Is it possible in Pega 7.1.8 ?
Integration > Service accelerator only allows the following service types -
- SOAP, .Net, HTTP, EJB, Java, JSR94, JMS, MQ, File
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
If you need to create a REST Service, you will have to do it manually by creating the following rules:
- Service package
- REST service rule
- Service activity
- Response stream
Regards,
Madhulika
Commonwealth Bank Group
IN
Hi,
Can someone help me out with the details steps to create a restful service ?
Thanks,
Rashmi
Pegasystems Inc.
GB
Like Sambildikar and RashmiR8 above, I am seeking information on the recommended way to build a RESTful service in PRPC. There is no wizard to do this.
Specifically:
1. How do I generate the Parse JSON and Stream JSON rules that are needed?
2. How do I generate the WADL file that my customer will need to configure his REST connector in SAP?
A good "How-To" guide for REST services in PRPC would be highly appreciated! There seems to be very little information I can find on PDN, and what I can find is very bald, with little detail on how-to.
Thanks in advance.
Accenture
SG
Hi
For REST Service there wont be any Parse and Stream JSON required. The response is sent as JSON from the Service Page on which service is run.
Also there is n o WSDL or WADL for JSON and only the sample JSON response is given as refecrnce for the third party developing REST Connector.
If you are using a POST method in Service REST. The request and response mapping looks like below.
Request:
MapTo - JSON
MapToKey - Page Context on which Service is getting request (this will be mapped to Clipboard page on the Servir Page from there you can use this request values for processing).
Example -
MapToKey - .InputData (example)
this indicates the request will be available on clipboard in MyServicepPage.InputData. Here the thing to note is all the properties required ineed to be created manually in class of InputData Page.
Response:
In similar lines to request here we have
MapFrom - JSON
MapFromkey- .OutputData (example)
this indicates the reponse should be available on clipboard in MyServicepPage.OutputData . Here the thing to note is all the properties required need to be created manually in class of OutputData Page.
Virtusa
IN
Hi,
The following records need to be configured for a REST service
TD-Canada
CA
Hi,
Please advise the way to configure in PEGA. as per the above question asked by user.
Thanks
IN
Can some one share some screen shots of how to configure. And when to use GET/POST or other types
Wipro
IN
Hi Pavanir,
Below is the URL which guides detailed steps to create and tetst the rest service.
https://www.pegaxchange.com/2017/10/09/create-pega-7-rest-service/
Thanks,
Hussain