OWSM manages the enforcement of policies via the Policy Interceptor Pipeline. When a request is made from a service consumer to a service provider, the request is intercepted by one or more policy interceptors. These interceptors execute policies that are attached to the client and to the Web Service. Each interceptor executes policies of the same type. For example, the security interceptor intercepts and executes security policies, the MTOM interceptor intercepts and executes MTOM policies, and so on. Policies attached to a client or Web Service are executed in a specific order via the Policy Interceptor Pipeline.
The Policy Interceptor Pipeline is shown in the following image:
As shown in the previous image, when a client or a Web Service initiates a message, whether it be a request message in the case of a client or a response message in the case of a Web Service, the policies are intercepted in the following order: Reliable Messaging, Management, Addressing, Security,...