3-2 Getting Started With JAX-RPC Web Services for Oracle WebLogic Server
The following sections describe the high-level steps for iteratively developing a Web Service, either starting from Java or starting from an existing WSDL file:
■
Section 3.3, Developing WebLogic Web Services Starting From Java: Main Steps
■
Section 3.4, Developing WebLogic Web Services Starting From a WSDL File: Main Steps
Iterative development refers to setting up your development environment in such a way so that you can repeatedly code, compile, package, deploy, and test a Web Service
until it works as you want. The WebLogic Web Service programming model uses Ant tasks to perform most of the steps of the iterative development process. Typically, you
create a single build.xml file that contains targets for all the steps, then repeatedly run the targets, after you have updated your JWS file with new Java code, to test that
the updates work as you expect.
In addition to the command-line tools described in this section, you can use an IDE, such as Oracle JDeveloper, to develop Web services. For more information, see Using
Oracle IDEs to Build Web Services in Oracle Fusion Middleware Introducing WebLogic Web Services for Oracle WebLogic Server.
3.2 Configuring Your Domain For Web Services Features
After you have created a WebLogic Server domain, you can use the Configuration Wizard to update the domain, using a Web Services-specific extension template, so
that the resources required by certain WebLogic Web Services features are automatically configured. Although use of this extension template is not required, it
makes the configuration of JMS and JDBC resources much easier.
The Web Services extension template automatically configures the resources required for the following features:
■
Web Services Reliable Messaging
■
Buffering
■
JMS Transport
The following procedures describe how to create and extend a domain so that it is automatically configured for the advanced Web services features. For detailed
instructions about using the Configuration Wizard to create and update WebLogic Server domains, see Oracle WebLogic Server Creating WebLogic Domains Using the
Configuration Wizard.
To create a domain that is automatically configured for the advanced Web service features:
1.
Start the Configuration Wizard.
2. In the Welcome window, select Create a new WebLogic domain.
3. Click Next.
Note: A domain that does not contain Web Services resources will
still boot and operate correctly for non-Web services scenarios, and any Web Services scenario that does not involve asynchronous request
and response. You will, however, see INFO messages in the server log indicating that asynchronous resources have not been configured and
that the asynchronous response service for Web services has not been completely deployed.
Developing WebLogic Web Services 3-3
4. Select Generate a domain configured automatically to support the following
products
and select WebLogic Advanced Web Services for JAX-RPC Extension. 5.
Click Next. 6.
Enter the name and location of the domain and click Next. 7.
Configure the administrator user name and password and click Next. 8.
Configure the server start mode and JDK and click Next. 9.
If you want to further configure the JMS services, file stores, or any other feature, select the items on the Select Optional Configuration screen. This is not typical.
Otherwise, leave all items deselected and click Next. 10.
When you reach the Configuration Summary screen, verify the domain details and click Create.
11. Click Done to exit.
To extend an existing domain so that it is automatically configured for these Web Services features:
1.
Start the Configuration Wizard.
2. In the Welcome window, select Extend an Existing WebLogic Domain.
3. Click Next.
4.
Select the domain to which you want to apply the extension template.
5. Click Next.
6. Select Extend my domain automatically to support the following added products
and select WebLogic Advanced Web Services for JAX-RPC Extension. 7.
Click Next. 8.
If you want to further configure the JMS services or file stores, select the items on the Select Optional Configuration screen. This is not typical.
Otherwise, leave all items deselected and click Next. 9.
Verify that you are extending the correct domain, then click Extend. 10.
Click Done to exit.
3.3 Developing WebLogic Web Services Starting From Java: Main Steps