Monitor SOAP messages
Information
none
Operating system used
Windows Vista Home Premium SP 1
Software prerequisites
TCPMon
Procedure
- 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.
- Start TCPMon, double click: C:\tools\tcpmon-1.0-bin\build\tcpmon.bat
- 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>
- Enable checkbox "XML Format" and press the Send button.
In the second screen, you will see the received SOAP message.
- 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>
- 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>
|