Apache TCPMon

 
 
TCPMon is a utility that allows the messages (TCP based protocols) to be monitored and resent. It is useful as a debug tool and is based on swing and runs on almost all the platforms that Java supports.

The latest Apache TCPMon version can be downloaded from: http://ws.apache.org/commons/tcpmon/index.html







Monitor SOAP messages



Information
none

Operating system used
Windows Vista Home Premium SP 1

Software prerequisites
TCPMon

Procedure
  1. TCPMon can also be used as a request sender for Web services.
    The request SOAP message can be pasted on the send screen and then sent directly to the server.
    In this tutorial we will be using the Countries web service.

  2. Start TCPMon, double click: C:\tools\tcpmon-1.0-bin\build\tcpmon.bat

    Apache TCPMon startup

  3. Select tab Sender and type:

    Connection Endpoint: https://www.mobilefish.com/services/web_service/countries.php?wsdl

    In the first screen, invoke the Countries web service operation "getIANAInfo()" by entering SOAP message:

    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope
       xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:getIANAInfo soapenv:encodingStyle=
    "http://schemas.xmlsoap.org/soap/encoding/"/>
    </soapenv:Body>
    </soapenv:Envelope>


    SOAP message send




  4. Enable checkbox "XML Format" and press the Send button.

    In the second screen, you will see the received SOAP message.

    SOAP message received


  5. Try to invoke the Countries web service operation "countryInfoByIana("us")" by entering the following SOAP message in the first screen:

    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope
       xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:countryInfoByIana soapenv:encodingStyle="
    http://schemas.xmlsoap.org/soap/encoding/">
    <ianacode xsi:type="xsd:string">us</ianacode>
    </soapenv:countryInfoByIana>
    </soapenv:Body>
    </soapenv:Envelope>


  6. Try to invoke the Countries web service operation "regionsInfoByIana("us")" by entering the following SOAP message in the first screen:

    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope
       xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <soapenv:regionsInfoByIana soapenv:encodingStyle="
    http://schemas.xmlsoap.org/soap/encoding/">
    <ianacode xsi:type="xsd:string">us</ianacode>
    </soapenv:regionsInfoByIana>
    </soapenv:Body>
    </soapenv:Envelope>