
- June 18, 2019
- SOAIS
- 0

Below are the steps involved in creating input and output messages for the REST Web Service in PeopleSoft:
Step 1: Define documentsStep 2: Define messagesStep 3: Create service- Define security
- Set request parameters
- Set response parameters
- Write handler code
Define documents
Navigate to PeopleTools > Documents > Documents Builder- Create a document with parameters which acts as a request, set the root element to request, and create a primitive with a predetermined length
- Create a second document with the parameters, this will be the response and add primitives of proper type and length for this document.

Define Messages
Navigate to PeopleTools > Integration Broker > Integration Setup > Messages. Create two messages one for the request and one for the response and these must be mapped to the documents predefined in the previous step.
Create a Service
Navigate to PeopleTools > Integration Broker > Integration Setup > ServicesCreate a new web service and check the ‘Is Provider’ checkbox.Save the service and add a new service operation with GET as REST MethodAfter creating this, we need to take care of the following:
- Define security
- Set request parameters
- Set response parameters