Web Services Development: Generating Client Code This document describes the following: 1. Generating Client Code From a WSDL File Using OEPE, you can generate the client code for the following types of projects:
To generate the client code for your web service, do the following:
Upon completion of the preceding procedure, Eclipse does the following:
If you deploy and run both your target and client web service projects, your generated client code will successfully call your target web service. 2.1 Alternative Ways to Generate the Client Code
2.2 Deploying Java Web Service Applications to Oracle WebLogic Server Typically, Eclipse builds your files automatically and you can deploy your application at any time. Note that in order to deploy, you must have a successful build completed.You can start Oracle Weblogic Server in either development or production mode: in development mode, the server behaves in ways that make it easier to iteratively develop and test applications (for example, the server automatically deploys the current application in an exploded format and relaxes certain security restrictions on deployment); in production mode, WebLogic Web Service test client is not deployed. For more information, see Testing Web Services.
Application deployment consists of the following three steps:
Usually these steps are done seamlessly, by explosion of the WAR file.
When you deploy, all open projects associated with the server are deployed. To undeploy a project or prevent it from being deployed, remove it from the server. Alternatively, you can close projects by selecting Project > Close Projects from the menu. You can also specify working sets (see Eclipse help system in the Workbench User Guide) to control how many artifacts to build and deploy.
However, even though an entire application or group of projects was deployed, only the file or folder that you clicked on to trigger the deployment will display its results. When you deploy your web service, the test client page for that web service will run in a new tab in the editor area - you can use it to specify the parameters to an operation and make a request to that operation. The response from the operation is displayed in the same tab. If the page flow or web service relies on other web services to run correctly, it will still work because all components are deployed.
To deploy your web service application, perform one of the following:
If you wish to simply publish your files to the server, you can use the Servers view by selecting Window > Show View > Servers from the main menu. Note that this view also lets you undeploy applications from the server.
After you deploy your application, the Servers view is displayed automatically.
|