HowTo monitor Axis1 or Axis2
The following steps describe how to monitor messages sent and received by an Axis2 client.
- Download Membrane Monitor
- Startup Membrane Monitor and set up a service proxy to your target service. The Quick Start Guide describes how to do this.
- Modify the endpoint address in your client so that it points to the monitor. Suppose the endpoint of your service is:
http://localhost:8080/axis2/services/CandleShop
and Membrane Monitor is also located at localhost. And suppose the rule is listening at port 2000. Then you have to use the URL:
http://localhost:2000/axis2/services/CandleShopThe next step is depending on the Axis framework you are using.
- Listing 1 shows the complete client for Axis2. The modification is shown in bold letters.
CandleShopSOAP11Port_httpStub stub=new CandleShopSOAP11Port_httpStub("http://localhost:2000/axis2/services/CandleShop"); ShoppingCartDocument cart = ShoppingCartDocument.Factory.newInstance(); stub.checkout(cart);Listing 1: Axis2 Client - In Listing 2 you can see a sample client fpr Axis1
CandleShopLocator loc = new CandleShopLocator("http://localhost:2000/axis2/services/CandleShop"); CandleShop shop = loc.getCandleShop(); shoppingCart cart = new ShoppingCart(); shop.checkout(cart);Listing 2: Axis1 Client - After starting your client you should see the captured messages in Membrane Monitor.