Deploying a Web Service to a SOAP Server on Oracle Application Server

You can quickly deploy a SOAP web service based on a Java class or an EJB as a JAR file to the SOAP server on Oracle Application Server.

First you create a deployment profile and specify where the JAR file containing the files for implementing the web service should be deployed to. Then you deploy the web service to that location.

To deploy the web service:
  1. In the navigator, select the project containing the web service.
  2. Choose File | New to open the New Gallery.
  3. In the Categories list, expand Business Tier and select Deployment Profiles .
  4. In the Items list, double-click JAR File - Simple Archive to open the Save Deployment Profile - Simple JAR dialog.
  5. Specify a location for the archive's deployment profile and click Save. The deployment profile is saved to the location you specified with a .deploy filename extension, and the JAR Deployment Profile Settings dialog opens.
  6. Select JAR Options and Browse to the location <jdev_install>/soap/webapps/soap/soap/WEB-INF/lib, where <jdev_install> is the folder where you installed JDeveloper.
    This will ensure that the JAR is deployed to the classpath so the SOAP server does not have to be restarted.
    You can specify another location for the JAR file, in which case you must either manually copy it to the location above, or add the new location to the application server's classpath, and stop and restart the SOAP server.
  7. Click Open to select the location and return to the JAR Deployment Profile Settings dialog.
  8. Click OK to deploy the JAR file to the location you selected.
  9. Select the deployment profile in the Navigator, right-click, and choose Deploy to JAR file. The log window shows the results of deployment.

Now that you have created your JAR file and deployed it to the correct location, you need to register it to ensure that the SOAP server can recognize the file. See Registering SOAP Web Services.


Developing SOAP Web Services

 

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