If you want to automate how you create Web services and clients
for the IBM® WebSphere® JAX-RPC
runtime environment, you can use Ant tasks rather than the Web services wizard.
Run your Ant tasks in one of two ways: in the Eclipse workspace using or
headless on a command line. After you create your Web service, you can deploy
it to a server, test it, and publish it as a business entity or a business
service.
Prerequisites
Before you create a Web service or
client using Ant tasks, you need to complete a few prerequisites.
- In most cases, create a new project or choose an existing project:
- To create a bottom-up Web service:
- Create a new project or choose an existing project that is associated
with WebSphere Application
Server or a WebSphere Application
Server stub. Your Web service will be created in this project.
- If you want to create a Java™ Web service, then create a dynamic
Web project; if you want to create an EJB (Enterprise Java Bean)
Web service, then create an EJB project.
- To create a top-down Web service or a Web service client:
- If you want to create a new project or choose an existing project now,
complete the preceding prerequisite for creating a bottom-up Web service.
- If you don't want to create a new project or choose an existing project
now, a new project will be created for you later when the Web service is generated.
- Import
the required Ant files into your workspace.
Creating a Web service or client
After you have
completed the prerequisites, you can perform the following tasks: