JDeveloper's debugging tools allow you to debug web services created using JDeveloper's web service publishing wizards. This is similar to debugging Java programs, and that you can debug a web service locally or remotely by running a sample Java client against the service in debug mode. You set breakpoints in the sample Java client, which is the stub or proxy to the web service, to investigate the functionality of the service.
Although you can debug a PL/SQL web service, what you are debugging is the Java class generated by JDeveloper to wrap the PL/SQL for deployment as a web service. Therefore the correct way to ensure that a PL/SQL web service runs as expected is to debug the PL/SQL before you create a web service from it. For more information, refer to Debugging PL/SQL Programs and Java Stored Procedures.
Note: You cannot debug web services that are generated for deployment on the Oracle SOAP server.
This topic contains the following sections:
When you locally debug a web service, the web service runs in JDeveloper's embedded OC4J server, and you do not need to deploy the service.
Once the web service is running in the embedded OC4J server, you can create a sample Java client to the web service. This contains methods to run against each exposed method in the web service, and you can add your own code and set breakpoints to examine how the web service runs.
For more information, refer to Locally Debugging Web Services.
When you remotely debug a web service, you have to start the server in debug mode, deploy the web service to it, and then create the sample Java client to run against the service. For information about starting JDeveloper's embedded OC4J in debug mode, refer to Remote Debugging in OC4J. To start a different server in debug mode, refer to that server's documentation.
Once the web service has been deployed to a remote server running in debug mode, you can quickly create a sample Java client for the service, and set breakpoints in it, and run it in debug mode. For more information, refer to Remotely Debugging Web Services.
Copyright © 1997, 2004, Oracle. All rights reserved.