Working with SOAP Web Service Clients

The following table shows how to work with SOAP web service clients.
Number 1
Create the web service client
  1. 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.
  2. Create the web service client proxies/stubs.

For troubleshooting, see Setting a Proxy for Consuming a Web Service.


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

Number 3
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.

  1. 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.
  2. 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.

Number 4
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.

  1. Make sure the server to which you want to deploy is targeted. Right-click a project node, choose Properties and check the Run panel.
  2. 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.


Legal Notices