March 30, 2002 - Passing Parameters to A Web Service
March 30, 2002 Passing Parameters to A Web Service Tips: March 2002
Yehuda Shiran, Ph.D.
|
callService
method. For example:
iCallID = service.StockQuote.callService("GetQuote", symbols.value);
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 StockQuote
Web service from Column 105, Web Services, Part X: Consuming the StockQuote.