Step 3: Test the MFS J2C Phonebook service

You can use the TestClient.jsp on the IBM® WebSphere® Application Server so that you can test the MFS J2C Phonebook service you created.

About this task

To test the Phone Book service, you invoke the TestClient.jsp.

Procedure

  1. Expand MFSPhoneBookWeb > WebContent > jsp.
  2. Right click TestClient.jsp. Select Run As > Run on Server.
    Remember: if you do not have a server defined, you will need to define one.
    The Run On Server page
  3. Select WebSphere Application Server and click Next. The Add and Remove Projects page opens. Add the MFSPhoneBookWeb project to the Configured projects pane, if it is not already there.
  4. Click Finish. The workspace displays Methods and Inputs in separate panes.
  5. Under Methods, click IVTNOMI1. The PhoneBook interface opens in the Inputs pane.
  6. Enter Display in the cMD field.
  7. Enter Last1 in the nAME1 field.
  8. Click Invoke. The results display at the bottom of the Inputs pane.
    The IMS MFS PhoneBook application runs, with input fields that prompt for values for querying the phonebook database.

Feedback