Tracing Web services components based on Web Services for J2EE

The following are tasks in which you can enable trace for Web services that are developed and implemented based on the Web Services for J2EE specification.

  1. Enable trace for a Web services unmanaged client.

    1. Create a trace properties file by copying %$WAS_HOME%\WebSphere\AppServer\properties\ file to the same directory as your client application JAR file.

    2. Edit the properties file and change the value of traceFileName to output the trace data.For example, traceFileName=c:\\temp\\myAppClient.trc.

    3. Edit the properties file to remove*=all=enabled and add*=all=enabled.

    4. Add the option -DtraceSettingsFile=<trace_properties_file> to the Java command- line used to run the client, where trace_properties_file represents the name of the properties file created in steps 1-2.For example, java myApp.myAppMainClass.

  2. Enable trace for a Web services managed client.

    1. Invoke the launchClient command-line tool with the following*=all=enabled-CCtracefile=traceFileName For example...

      %$WAS_HOME%\bin\launchClient*=all=enabled -CCtracefile=myAppClient.trc

    See launchClient tool for more information.

  3. Enable trace for a Web Services for J2EE server application.

    1. Start WAS.

    2. Open the administrative console.

    1. Click Servers >Application Servers > server.

    1. Click Diagnostic Trace Service.

    1. In the Trace Specification field, delete the text *=all=enabled and add*=all=enabled.

    2. Click Save and Apply.

    For more information see Enabling trace.


See Also

Troubleshooting Web services based on Web Services for J2EE
Tracing SOAP messages
Troubleshooting the run time of Web services based on Web Services for J2EE