9.4 Run the WSClientPortlet application

 < 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

    graphics/09fig27.jpg

  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

    graphics/09fig28.jpg

    Figure 9-29. Available methods

    graphics/09fig29.jpg

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

Figure 9-30. Invoking Web Services

graphics/09fig30.jpg

Figure 9-31. Results from the Web Service

graphics/09fig31.jpg

 < Day Day Up > 


IBM WebSphere Portal V5 A Guide for Portlet Application Development
IBM Websphere Portal V5: A Guide for Portlet Application Development
ISBN: 0738498513
EAN: 2147483647
Year: 2004
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net