SOAPDoc is one of the API available in PeopleTools which would help in the construction of a SOAP message. Unfortunately, not much examples are available which explains how to accept a SOAP message through the integration gateway and process it in PeopleSoft. In this tutorial, we will focus on constructing a simple message in PeopleSoft that can accept a SOAP XML, process it through the integration broker and send a response back. For our testing purposes, we will use SendMaster. It is assumed that the readers of this tutorial have a basic idea on how a PeopleSoft Message is constructed and fed through the integration gateway. I will still cover them up for completion. The example presented in this tutorial will be based on the 8.46 version of PeopleTools.
For this example, we will try to absorb a SOAP message into PeopleSoft, that takes three numbers 'a', 'b', 'c' and process them to send the following information in response
- Biggest of three numbers
- Sum of three numbers
- Product of three numbers
- Smallest of three numbers
The input XML that we will be publishing into PeopleSoft will be of the following format
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <ProcessNumbers> <Number1>5</Number1> <Number2>7</Number2> <Number2>8</Number2> </ProcessNumbers> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
For this example, let us assume that PeopleSoft will return a XML of the following format in the output
<?xml version="1.0" encoding="UTF-8"?> <result> <biggest>8</biggest> <sum>20</sum> <product>280</product> <smallest>5</smallest> </result> |
From here, we have four branches:-
1) Defining the message and related node in PeopleSoft.
2) Writing OnRequest Code in PeopleSoft to process the message
3) Testing the solution using EventTester & SendMaster
You may wish to jump to the relevant sections if you are comfortable doing so.
No comments:
Post a Comment