Step 9: Test the service on IBM WebSphere Application Server

Now that you have built and deployed the MFS Phonebook service, you can test it on a production IBM® WebSphere® Application Server by using a test client JSP.

About this task

To test the service on a production server by using a test client JSP, complete the following steps:

Procedure

  1. Launch a browser and type the following URL: http://host_name:your port number/MFSPhoneBookWeb/jsp/TestClient.jsp.
    Tip: The first time you access this URL, the page might load slowly because the JSP is being loaded.
  2. Issue a query to display a phone book entry. Type the following values in the fields on the input JSP:
    Field Value
    Command (cMD) Display
    Last Name (nAME1) Last1
  3. Click Invoke.
  4. Verify the Phonebook application default data displays, then click the back button on your browser to return to the input JSP
  5. Issue a query to add a phone book entry. Type the following values in the fields on the input JSP:
    Field Value
    Command (cMD) Add
    Last Name (nAME1) Doe
    First Name (nAME2) Jane
    Extension Number (eXTUnicode0023) 5-5555
    Zip code (zIP) 55555
  6. Click Invoke.
  7. Click the back button in the browser to return to the input JSP.
  8. Issue a query to delete the phone book entry that you just created. Type the following values in the fields on the input JSP:
    Field Value
    Command (cMD) Delete
    Last Name (nAME1) Doe
  9. Click Invoke.

Results

Congratulations! You have successfully deployed and tested your service. If you are interested in learning more about building enterprise services, read other enterprise services scenarios and samples available in the product.

Feedback