HowTo monitor Axis1 or Axis2

The following steps describe how to monitor messages sent and received by an Axis2 client.

  1. Download Membrane Monitor
  2. Startup Membrane Monitor and set up a service proxy to your target service. The Quick Start Guide describes how to do this.
  3. 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/CandleShop

    The next step is depending on the Axis framework you are using.

  4. Axis 2

  5. 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
  6. Axis 1

  7. 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
  8. After starting your client you should see the captured messages in Membrane Monitor.