Question


Accenture
JP
Last activity: 16 Jan 2017 4:54 EST
How to create a service REST
Hi all
I want to know how to create service REST.
I am considering using Pega's Activities from an external system.
When I created service HTTP, I could use service wizard.
But when I tried to create a service REST, REST didn't appear in the service type list in the service wizard.
Do I have to create service REST and service package from "+Create → Integration Service → Service REST" ?
Best Regards,
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution


Virtusa Inc
US
As far as i know there is no wizard for service rest.
you have to create service REST and service package from "+Create → Integration Service → Service REST" only.
for all the properties creation that are used in the rest service, i have used connectro metadata wizard and uploaded a XSD so pega will create classes, properties, Data transforms.


Pegasystems Inc.
IN
Hello!
Thank you for your question on PSC!
Here's a help topic that I found on PDN: Creating REST integration
Please let us know if it helps!
Regards,
Lochan | Community Moderator | Pegasystems Inc


Accenture
JP
Thank you Lochan.
I think this article says how to use the Rest service which is in an external system.
I want to know the opposite way.
Sorry for my poor English.
Please see the below picture.
Accepted Solution


Virtusa Inc
US
As far as i know there is no wizard for service rest.
you have to create service REST and service package from "+Create → Integration Service → Service REST" only.
for all the properties creation that are used in the rest service, i have used connectro metadata wizard and uploaded a XSD so pega will create classes, properties, Data transforms.


Accenture
JP
Thank you, Balajig.
Sorry for late response.
I will try to create REST connection and properties without wizard.
Best Regards,
Yuki


Pegasystems Inc.
IN
Please refer the attached document which will provide you the information on Rest service implementation with screenshot.You can use the same as reference.
Regards,
Sudhish OP


IKOR
AU
Hi Yuki,
Before introducing new Rule-Service-Rest rule in your application, you need to identify the following things
1.Define the Service package rule for Rule-Service-Rest
2.Identify whether your service package should be Stateful or Stateless in processing mode
3.Does it requires Authentication ?
4.If yes, define new Authentication Service
5.Define the pooling parameters in the Service package
Once, your service package is ready, then define Rule-Service-Rest rule
In service rest rule, identify the following things
Hi Yuki,
Before introducing new Rule-Service-Rest rule in your application, you need to identify the following things
1.Define the Service package rule for Rule-Service-Rest
2.Identify whether your service package should be Stateful or Stateless in processing mode
3.Does it requires Authentication ?
4.If yes, define new Authentication Service
5.Define the pooling parameters in the Service package
Once, your service package is ready, then define Rule-Service-Rest rule
In service rest rule, identify the following things
1. Define new class structure in primage page context in Service tab.
2. Define the new page name in the service tab
3. Identify the Execution mode whether it should be Synchronously or Asynchronously.
4. In methods tab, identify which method would like to be invoked (GET,POST,PUT or DELETE)
5. Define your service activity in the methods
6. In Request and respone, identify the attribute which are needed.
7. In response option, define the Map from as JSON and mention your page structure n MapFromKey. Service rest automatically converts the page or pagelist into JSON object.
- Naren
-
NARENDRA POTNURU