Generating a web service proxy client

Java web service client applications use a web service proxy client to interact with the Web services APIs. A proxy client allows the developer to invoke the web service APIs as if it was a local method. For generating a web service proxy client, we need the WSDL files that describe the web service interfaces. The WSDL files for business process API is BFMWS.wsdl and for human task API is HTMWS.wsdl. The steps in generating a web service are as follows. (Before following the steps, copy your WSDL files to your workspace or to some location where the WID/RAD can see your WSDL files.

Step 1.
Right click on the web project (from web perspective) and select New -> Other. The select wizard opens. Expand the web service folder and select ‘Web Service Client’.

Web service client selection

Click Next.

Step 2.
From the web service client dialog box, accept the default values (The client proxy type would be Java Proxy, and ‘Create Folders when necessary’ checkbox would be checked and all other check boxes would be unchecked) or select the options that matches your environment.

Web service options page

Click Next.

Step 3.
The web service selection page opens. Click on Browse button. From the opened resource browser window, select the WSDL file. Click OK.

Web service selection page

Click Next.

Step 4.
The client environment configuration window opens. From this page select ‘IBM WebSphere’ as the Web service runtime by clicking the Edit button, if it is not selected already. Select the client type and the client projects.

Client Environment Configuration

Click Next.

Step 5.
The web service proxy client page appears. Accept all the default values.

Web service proxy page

Click Finish.

The web service proxy client will be generated and we can use the generated proxy client and helper classes for invoking the web service from our client application.

Did you like this? If so, please
tell a friend
about it, and subscribe to the blog RSS feed.

Share/Save/Bookmark

If you enjoyed this post, make sure you subscribe to my RSS feed!



Related Posts:
  • IWAB0639E Error when generating web service client
  • org.xml.sax.SAXException: WSWS3047E: Error: Cannot deserialize element
  • Invoking a web service using web service proxy client
  • UNAUTHENTICATED is not granted any of the required roles: eventAdministrator eventCreator catalogAdministrator
  • Invoking an external web service from WebSphere Process Server.


  • 4 Responses to “Generating a web service proxy client”  

    1. 1 Amit Mittal

      Hi,

      It helped me in creating WS client however I am wondering how do I test it I dont want to
      test by right clicking on WSDL and checking it :???: . Please tell me how do I write a JavaMethod
      to make a request what all should me parameters ine request and if I need to pass any URL or
      something to make my request. please help.

      Any help will be highly appriciated.

    2. 2 Albin Joseph

      Amit, I have created a small tutorial of how to invoke a web service using web service proxy client and is available at http://www.albeesonline.com/blog/2008/09/15/invoking-a-web-service-using-web-service-proxy-client/. If you have any questions please let me know.

    1. 1 Start a long running business process using webservice API | Some Java, J2EE and WebSphere stuffs
    2. 2 Invoking a web service using web service proxy client | Some Java, J2EE and WebSphere stuffs

    Leave a Reply