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 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.
- If you are running the Ant tasks from a command line, you should
close your workspace before running the tasks.
Creating a web service or client
After you
have completed the prerequisites, you can perform the following tasks: