April 10, 2002 - Calling the IsPrime Web Service
![]() |
April 10, 2002 Calling the IsPrime Web Service Tips: April 2002
Yehuda Shiran, Ph.D.
|
IsPrime Web service in action:
| Enter a number: | |||
isPrimeNumber() is called when the Click here to check if prime button is clicked. It calls the Web service with three parameters: (i) the function to handle the result, isPrimeNumberResult, (ii) the Web service request, IsPrime, and (iii) the parameter expected by the Web service, testValue.value:
function isPrimeNumber() {
myWebService.isPrimeNumberWebService.callService(isPrimeNumberResult, "IsPrime",
testValue.value);
These Web service examples work properly in Internet Explorer 5.5 or later browsers. If you are using Internet Explorer 5.5+ and receiving errors with the examples, you need to enable the access data sources across domains option. See Column 105 for details.To learn more on consuming multiple Web services, go to Column 106, Web services Part XI: Consuming Multiple Web Services.
Information Technology Manager (MN)
Next Step Systems
US-MN-Minneapolis
SR UI DEVELOPER - JSF - Ajax - ICE Faces - Rich Faces
Next Step Systems
US-IL-Chicago
Technical Specialist – Pre-sales (MA)
Next Step Systems
US-MA-Littleton



