Web service is one of the commonly used approaches for applications integration (composition), when integrating applications; an application can act as either a consumer (client) or a producer (server). A web service framework should be able to deploy services as well as access the services. So far, we have discussed the deployment side of it. Thus, in this chapter, we will focus on the client side and how to use Axis2 to access remote services. In high level, Axis2 runtime does not differentiate between the client side and the server side. Moreover, it uses the same execution framework at the server side as well as the client side. As we already discussed, in the server side, we have services. Thus, to keep the symmetry in the client side as well, Axis2 creates a dummy service when we use the client API. In this chapter, we will look at the various aspects of the client API, with the example use case.
In this chapter, we will discuss most of the commonly used APIs...