<HTML>
<HEAD>
<meta
name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5">
<TITLE>Web
services from the client</TITLE>
<script
language=JScript>
function
init()
{
//
Create an instance of the web service and call it svcWeather
service.useService("clsWeatherJScript.asmx?WSDL","svcWeather");
}
function
showWeather(result)
{
// Show
the conditions
divWeather.innerHTML = result.value
}
function
getConditions()
{
// Call
the getConditions method on the svcWeather web service
iCallID =
service.svcWeather.callService(showWeather,"getConditions",txtCity.value)
}
//-->
</script>
</script>
</head>
<body
onload=init()>
<div id=service
style="BEHAVIOR:
url(webservice.htc)"></div>
<table
border="0"
width="100%" ID="Table1">
<tr>
<td
width="15%">
<p
align="right">Which
city?:</td>
<td
width="17%"><input
type="text"
name="txtCity"
size="20" ID="Text1">
</td>
</tr>
</table>
<input
type="button"
value="Get
Weather"
name="btnFindFlights" ID="Button1"
onclick="return
getConditions()"></input>
<br><br>
The weather is:<br>
<div id="divWeather"></div>
</BODY>
</HTML>