
Create the web service client |
- From the Projects window or Files window, right-click a node
in the project and choose New > Other.
The New File wizard appears. Under Categories, select Web Services. Under File Types, select Web Service Client.
Click Next.
- Create the web service client proxies/stubs.
For troubleshooting, see Setting a Proxy for Consuming a Web Service.
|
|

Develop the web service client application |
- In the Projects window or Files window, double-click the files
that you would like to edit.
- Use the Source Editor to develop the
web service client.
- When you right-click in the Source Editor, you can use the IDE to generate skeleton code for
calling a web service operation.
|
|

Build the web service client
|
Note: In most cases it is not necessary to build the web service client.
The IDE builds the client in the course of deploying it.
- Do one of the following:
- If the client is in a Java application or stand-alone Web application,
right-click the application's node and select Build.
- If the client is in a JavaEE module in an enterprise application,
and you want to build the entire application, right-click the enterprise
application's node and select Build.
- If the client is in a JavaEE module in an enterprise application and
you only want to build the JavaEE module, right-click the module and
select Build.
- Analyze the result and, if necessary, customize the related
tool's features. For a JAX-WS web service that is created from a WSDL file,
you can use the Web
Service Attributes editor to customize the wsimport
tool's features.
|
|

Deploy the web service client |
You can deploy a web service client as a stand-alone web application or as a part of
an enterprise application.
- Make sure the server to which you want to deploy is targeted. Right-click a project node,
choose Properties and check the Run panel.
- Do one of the following:
- To deploy the client as part of an enterprise application, right-click the enterprise application's
JavaEE Modules node, choose Add JavaEE Module, select the module that contains
the web service client, and click OK. Then deploy the enterprise application. See
Deploying
an Enterprise Application.
- To deploy the client as a stand-alone web application,
right-click the project and choose Run or Deploy. See
Deploying a Web Application.
For troubleshooting, see Setting a Proxy for Consuming a Web Service.
|