IBM Websphere Portal V5: A Guide for Portlet Application Development

 < Day Day Up > 

In this section, you will run the Web Services client (WSClientPortlet) to access the prime number generator Web Service. Execute the following steps:

  1. Run the WSClientPortlet portlet application by right-clicking WSClientPortlet in the Navigator panel and selecting Run on Server .

    Figure 9-27. Running WSClientPortlet

  2. Select the option to Create a new server .

  3. Click Finish (Figure 9-28) and wait a few minutes for the server. The portlet will run and will be seen in the built-in browser. Click the method getPrime(int) to access the Web Service and generate a prime number.

    Figure 9-28. Server selection

    Figure 9-29. Available methods

  4. Enter a number of digits, for example 20, and click Invoke .

Figure 9-30. Invoking Web Services

Figure 9-31. Results from the Web Service

 < Day Day Up > 

Категории