Service_1 Route

To emulate a scenario where the random choice of a string could result in multiple possible scenarios, this route returns one of the two strings for each incoming HTTP request. The route emulates a web service that randomly generates the NEXT or DONE string which is then sent to the 2_CallService1 Route as a response body.

Route Structure

Service_1 Route

Route Components Description

Component Name Component Type Description
RESTful Web Service Inbound RESTful Web Service Inbound Receives an HTTP request.
Message Emulation Groovy Executes a Groovy script that randomly generates a response (an XEServer message exchange with either NEXT or DONE message body).
RESTful Web Service Outbound RESTful Web Service Outbound Returns the emulated response to the route 2_CallService1.