Chapter 7. Web Service consumer 163
We are back to the window where the input parameters can be specified and the service
endpoint be selected as shown in Figure 7-63. The list of service endpoints now contains the
one we just added and we select that one and continue to invoke the service.
Figure 7-63 Invoking service with alternative endpoint
Specifying alternative service endpoints can be very useful for a number of reasons. One of
the reasons it is often done is to send the connection through a TCP/IP monitor for
troubleshooting.
7.4.5 TCP/IP Monitor
The IBM Rational Application Developer IDE, as well as other IBM development IDEs, comes
with a nice troubleshooting tool called
TCP/IP Monitor. This tool acts as a proxy between two
TCP/IP endpoints and records the messages being exchanged. While the Web Service
Explorer allows you to see the SOAP messages as well, the TCP/IP monitor allows you to do
the same with any application so you can troubleshoot your own applications instead of
simulating a service client in the Web Service Explorer.
When we put these examples together we wanted to make sure that the exchanged
messages were correct and the namespaces were used properly. To accomplish this, we
utilized the TCP/IP Monitor to check the exchanged messages and verified that they indeed
were correct.