Lesson 3: Creating the web service client
In this lesson you will learn how to create a client for the web service.
Before you begin
About this task
View the dynamically generated WSDL
About this task
Procedure
Create the address book web service client and test JSP
Procedure
Test the web service client using sample JSPs
About this task
Procedure
- The TestClient.jsp should be launched automatically if you selected the correct options. If it is not displayed, select jwsAddressBookClient/WebContent/sampleAddressBookPortProxy/TestClient.jsp, right-click and select
- To test the service synchronously, select the saveAddress method and enter information in the name field. All other fields are optional. Click Invoke.
- Select the findAddress method, enter the name you used during the saveAddress method, and click Invoke. The information saved by the saveAddress method should display in the results pane.
- To test the service asynchronously, in the Quality of Service pane select the Enable asynchronous invocation checkbox.
- Select the findAddress method, enter the name you used during the saveAddress method, and click Invoke.
- A new link will display indicating that the method is in progress. Click the link to display the method response in the Results pane.
Results
Once you have tested the web service leave the JSP open so that you can test the service again once the web service and client have been secured.
Lesson Checkpoint
Now you are ready to begin Lesson 4: Secure the web service with the RSP policy set.