User Guide

Table Of Contents
Troubleshooting SOAP requests and responses 915
The following example uses the GetSOAPRequest function in a web service CFC method:
<cfcomponent displayName="testerdebug" hint="Test for underscores">
<cffunction access="remote" name="echo_me" output="false" returntype="string"
displayname="Echo Test" hint="Header test">
<cfargument name="in_here" required="true" type="string">
<cfset var soapreq = ““>
<cfif IsSOAPRequest()>
<cfset soapreq = GetSOAPRequest()>
<cflog text="#soapreq#"
log="APPLICATION"
type="Information">
...
Using the TCP monitor
TCPMonitor is a swing-based application that lets you watch the request and response flow of
HTTP traffic. You can also watch the request and response flow of SOAP traffic. TCPMonitor
replaces the Sniffer service formerly used in Macromedia JRun.
To run TCPMonitor:
On Windows and Unix platforms, you can execute the TCPMonitor by launching the sniffer
utility in the jrun_root/bin directory.
The TCP Monitor main window appears.
TCPMonitor is a swing-based application that lets you watch the request and response flow of
HTTP traffic. However, you can also use it to watch the request and response flow of SOAP
traffic.
To run TCPMonitor:
1.
On Windows and Unix platforms, you can execute the TCPMonitor by launching the sniffer
utility in the cf_root/bin (server configuration) or jrun_root/bin (multiserver configuration)
directory.
The TCP Monitor main window appears.
Note: In the J2EE configuration, run the utility directly out of the JAR file by using the following
command:
java -cp cf_webapp_root/WEB-INF/cfusion/lib/axis.jar java
org.apache.axis.utils.tcpmon [listening_port] [target_host] [target_port]
2.
Enter the values in the main window as described in the following table:
Field Description
Listen Port# Enter a local port number, such as 8123, to monitor for incoming
connections. Instead of requesting the usual port on which your server
runs, you request this port. TCPMonitor intercepts the request and
forwards it to the Target Port.
Listener Select Listener to use TCPMonitor as a sniffer service in JRun.