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