|
Hi all,
I am trying to consuming a .NET web service from a standard (classic) ASP
page. I have come across a few articles which describe that it can be done
as follows (after installing the Soap Toolkit 2.0):
<html>
<head>
<title>Calling a webservice from classic ASP, using the SOAP Toolkit</title>
<body>
<%
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
Dim oSOAP
Set oSOAP = Server.CreateObject("MSSOAP.SoapClient")
oSOAP.ClientProperty("ServerHTTPRequest") = True
oSOAP.mssoapinit("http://www.wimdows.net/webservices/temperature.asmx?wsdl")
Response.write("Temperature in fahrenheit: " &
oSOAP.cels2fahr(CDbl(Request.Form("text1"))) & "<BR>")
End If
%>
<FORM method=POST name=”form1”>
Enter degrees Celsius and click 'Convert' to convert to Fahrenheit.<BR>
<INPUT type="text" name="text1">
<BR><BR>
<INPUT type="submit" value="Convert" name=”submit1”>
</form>
</body>
</html>
When I try this however I get an error:
WSDLReader:Analyzing the WSDL file failed HRESULT=0x80004005
It fails on the line oSOAP.mssoapinit
("http://www.wimdows.net/webservices/temperature.asmx?wsdl")
Does anybody know why?
Thanks,
Jesse |