| In this section, you will run the Web Services client (WSClientPortlet) to access the prime number generator Web Service. Execute the following steps: -
Run the WSClientPortlet portlet application by right-clicking WSClientPortlet in the Navigator panel and selecting Run on Server . Figure 9-27. Running WSClientPortlet -
Select the option to Create a new server . -
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 -
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 |