Develop Web services clients based on Web Services for J2EE

This topic explains how to develop a Web services client based on the Web Services for J2EE specification.

For a Java application to act as Web service client, a mapping between the Web Services Description Language (WSDL) file and the Java application must exist. The mapping is defined by the Java API for XML-based RPC (JAX-RPC) specification. Use a Java component to implement a Web service by specifying the component's interface and binding information in the WSDL file and designing the appserver infrastructure to accept the service request. This entire process encompassed is based on the Web Services for J2EE specification.

Before you begin this task, locate the Web Services Description Language (WSDL) file that defines the Web service to access.

To create the client code and artifacts that enable the application client to access a Web service...

  1. Develop client bindings from a WSDL file.The client-side bindings and deployment descriptors are generated.

  2. Complete the client implementation.

  3. (Optional) Assemble a Web services-enabled client JAR file.Complete this step if you are developing a managed client that runs in the J2EE client container.

  4. (Optional) Assemble a Web services-enabled client Web archive (WAR) file.Complete this step if you are developing a managed client that runs in the J2EE client container.

  5. (Optional) Configure the webservicesclient.xml deployment descriptor.Complete this step if you are developing a managed client that runs in the J2EE client container.

  6. (Optional) Configure the ibm-webservicesclient-bnd.xmi deployment descriptor. Complete this step if you are deploying a managed client that runs in the J2EE client container and you want to override the default client settings. See ibm-webservicesclient-bnd.xmi assembly properties for more information about the ibm-webservicesclient-bnd.xmi deployment descriptor.

  7. Test the Web services-enabled client application.

You have created and tested a Web services client application. For step-by-step information see Example... Developing Web services clients based on Web Services for J2EE.

 

See Also

Web services
Using Web services based on Web Services for J2EE
Developing Web services based on Web Services for J2EE
Example: Developing Web services clients based on Web Services for J2EE
Artifacts used to develop Web services based on Web Services for J2EE
ibm-webservices-bnd.xmi assembly properties