Creating a Web service client

Next you can create a client application to use the Web service. Do the following:
  1. Expand your project, then expand the folder appropriate for the Web service runtime you selected when you created the Web service. The WSDL file that you created is located within your ZIETrans project:
    • If you created a Web service for an IBM® WebSphere® JAX-RPC or JAX-WS runtime, it is located in the Web Content/WEB-INF/ Web Service Definitions folder.
    • If you created a Web service for an Apache Axis runtime, it is located in the Web Content/Web Service Definitions folder.
    This folder contains a file called wrapper.wsdl, where wrapper is the name you gave to your wrapper class.
  2. Right-click this file and select Web Services > Generate Client to start the Web Service Client Proxy wizard. On the first page of the wizard, you can choose all defaults except for the client project. You should choose a project other than the project that contains the Web service.
    Note: The specified Client project and the Ear project need to have the same server target as the chosen Server.
    You can click Finish at this point, or continue through the wizard. Refer to the Eclipse documentation for information about the options in this wizard.
  3. If you chose to Test the Web service, the wizard creates sample JSP pages, and runs the sample on the server. The output of the sample JSP pages will be displayed in the web browser. To run the sample, in the Methods frame, click the io_name ProcessWS link to test a particular Integration Object or EJB Access Bean. In the Inputs frame, set the required inputs, as described in Testing your Web service with Web Services Explorer. The Result frame will display the outputs.

    The sample pages are created in your client project. In the Navigator view, expand your client project, and expand Web Content and samplewrapperProxy. In the samplewrapperProxy folder are the sample JSP pages. You can run the sample by running the TestClient.jsp file on the server. Double click Result.jsp to open it in the JSP editor. You can examine the code and copy code from the sample into a ZIETrans business logic class, which can be run from a screen customization to invoke your Web service and use the output in a transformation or in some other way.