IBM Support

How to setup and monitor SOAP messages from the SDK using TcpMon Tool

Troubleshooting


Problem

How to set up TcpMon Tool to monitor SOAP messages from the SDK.

Resolving The Problem


1) Double-click <Cognos_install_location>\webapps\p2pd\WEB-INF\tcpmon.bat in your windows development environment.

2) Only the following 3 entries need to be edited:

Listen Port #
Target Hostname
Target Port #

If the URL used to connect to ReportNet or Cognos 8 in the SDK code looks like the following,
http://<servername>:9300/p2pd/servlet/dispatch

Enter the following values for the 3 entries:

Listen Port #: 9999
Target Hostname: <servername>
Target Port #: 9300

3) Click the Add button.

4) Edit the Endpoint URL used to connect to CRN or Cognos 8 in the SDK code to:

http://<servername>:9999/p2pd/servlet/dispatch

5) Compile and run the SDK application code.

6) Go back to TCPMonitor and click the 'Port 9999' tab.

The top portion of the display is used to select a piece of conversation.

The middle portion of the display is the SOAP request.

The bottom portion of the display is the SOAP response.

7. See that the Soap Requests / Reply commands are in the displays.

8. For saving the Soap Trace, control click all the lines in the top portion, then use the Save button to save all requests / replies to a file in the Operating System.

9. Send this file for review.

Attached to this Knowledge Base document is a text file with summarized instructions.


To run tcpmon on UNIX:

Use the following command from /<Cognos_install_location>/webapps/p2pd/WEB-INF:

/home/jre14/jre/bin/java -cp lib/axis.jar org.apache.axis.utils.tcpmon

Note: Change the directory to where "Java" executable is actually installed on your UNIX server.

Follow the directions above to set up the trace.

[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Component":"Software Development Kit","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"1.01;1.1;8.1;8.2","Edition":"","Line of Business":{"code":"","label":""}}]

Historical Number

1019359

Document Information

Modified date:
28 November 2022

UID

swg21339588