|
March 30, 2002 Passing Parameters to A Web Service Tips: March 2002
Yehuda Shiran, Ph.D.
|
|
We call a Web service with the callService method. For example:
The callService() function is defined in webservice.htc. It expects a request name ("GetQuote") and its arguments. The GetQuote request expects a string with trade symbols, separated by blanks. This string is entered by the user in the input text field with ID="symbols", and is passed to the GetQuote request as symbols.value. Notice also how we keep the returned ID of callService() in iCallID. This is needed for matching the response from the Web service to the triggering request.
Learn more about consuming the
People who read this tip also read these tips: Look for similar tips by subject: |
| ||||||||||||||||||||