Flow is simply a collection of phases, and the order of phases inside a flow is defined in
axis2.xml
. As a phase is a logical collection and, which is, in fact, a virtual concept, a flow can be assumed as the execution chain (a collection of handlers). There are four types of flows in Axis2:
InFlow
: When a message comes in (request message), the message has to go via theInFlow
. Then all the handlers in theInFlow
will be invoked.InFlow
is somewhat different from theOutFlow
. A flow consists of two parts. The first part is from the beginning to the dispatcher (up to and including the dispatch phase). The second part will be there only if a corresponding service is found at the end of the dispatch phase. Therefore, the second part of the flow isInFlow
of the corresponding operation for the incoming message. So theInFlow
consists of a global part and an operation part.InFaultFlow
: This flow will be invoked if the incoming request is faulty (request with HTTP status code 500).OutFlow...