Sequences
A sequence is a list of mediators processed one by one in order. By default, the Enterprise Integrator has two sequences--main and fault--but we can create the sequences we need in our requirements, containing a combination of mediators.
Main sequence
This sequence is triggered when a call to the EI server doesn't have a correct instance for an axis2 service; for example, when we make a request to the URL: http://localhost:8280/services/NonExistingService
, the sequencereturns a 202-accepted HTTP code and logs the incoming message to the console, unless there are one of the sample services:
<?xml version="1.0" encoding="UTF-8"?> <sequence name="main" xmlns="http://ws.apache.org/ns/synapse"> <in> <!-- Log all messages passing through --> <log level="full"/> <!-- ensure that the default configuration only sends if it is one of samples --> <!-- Otherwise Synapse would...