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’.
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.
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.
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.
Click Next.
Step 5.
The web service proxy client page appears. Accept all the default values.
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 about it, and subscribe to the blog RSS feed.If you enjoyed this post, make sure you subscribe to my RSS feed!
Related Posts:
4 Responses to “Generating a web service proxy client”
- 1 Pingback on May 19th, 2008 at 7:01 pm
- 2 Pingback on Sep 15th, 2008 at 7:24 pm































Hi,
It helped me in creating WS client however I am wondering how do I test it I dont want to
. Please tell me how do I write a JavaMethod
test by right clicking on WSDL and checking it
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.
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.