Testing services
In this topic ...
Examining the Service Inputs and Outputs
Related Topics ...
We can test the services you call or create as follows:
- Use Apache AXIS TCP Monitor
- Enable the Log Request/Response input in the builder call
Examining the Service Inputs and Outputs
There are two ways we can examine service inputs and outputs:
- Apache AXIS TCP Monitor
- Log Request/Response Input
The following sections describes each approach in more detail.
Using Apache AXIS TCP Monitor
Follow these steps to monitor service requests and responses with Apache AXIS TCP Monitor:
- Start Apache AXIS TCP Monitor with the following command in the project's WEB-INF/lib directory:
java -cp axis.jar org.apache.axis.utils.tcpmon 8090 localhost 8080
- Replace "8090" with an available port on which you want the utility to listen for service requests and responses
- Replace "localhost" with the hostname of the server that the Web service is calling.
- Replace "8080" with the port on the server that the Web service is calling.
- In the Service Call builder call, set the Service URL (override) input (in the Advance group) to:
http://factoryhost:8090
- Replace "factoryhost" with the host name of the machine running the Factory.
- Replace "8090" with the port number you used when starting Apache AXIS TCP Monitor.
As a result of these steps, the log data is written to your deployed application WAR's
WEB-INF/logs
folder. Look for the filedebugTracing.txt
in that folder.
Enabling the Log Request/Response Input
We can display service input and output streams by enabling the Log Request/Response input in the service call's builder call editor. The information is the same as that in the Apache AXIS TCP Monitor.