Remotely Debugging Web Services

JDeveloper lets you debug a web service that is deployed remotely. The web service could be to an external instance of OC4J on the local machine, or it could be a service located on a remote machine. In either case, you will need a connection to the remote server, and the remote server must be running in debug mode.

With the server running in debug mode, perform the following steps:

  1. Run the remote server in debug mode.
  2. Deploy the web service to the remote server.
  3. Create a sample Java client for the web service, set breakpoints in it, and run it in debug mode.

Running the Web Service in Debug Mode

For information about running OC4J remotely in debug mode, refer to Remote Debugging in OC4J. To start a different server in debug mode, refer to that server's documentation.

Deploy the Web Service

Deploy the web service in the usual manner. For more information, refer to Deploying Web Services.

Creating a Sample Java Client

You can quickly create a sample Java client for the web service.

To create a sample Java client:

  1. In the navigator, right-click the web service container, and choose Generate Sample Java Client. A Java class called Embedded <web_service>Stub.java is generated and displayed in the Code Editor.
  2. Add one or more breakpoints, right-click and choose Debug. The debugger operates as for any Java class. For more information, refer to Debugging Java Programs.

About the Debugger Windows
Moving Through Code While Debugging

 

Copyright © 1997, 2004, Oracle. All rights reserved.