Testing Modeled Web Services

Once you have created a modeled web service you may want to test it. JDeveloper provides an embedded OC4J server that you can use to test and debug your applications, and you can create a test client from the modeled web service in your diagram.

To generate a test client:

  1. Run the web service in the embedded OC4J server. Either:
  2. Create the test client. Either:
  3. In the sample Java client, find the comment that says // Add your own code here, and add some code that calls an exposed method in the web service using the stub, for example
    stub.m()
    where m() is a method that has been exposed.
  4. Make and run the test client. The results are displayed in the log window.

If you see an error in the log window:


Modeling Web Services

 

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