Solved

Web Service and Classic ASP

Posted on 2004-09-20
4
485 Views
Last Modified: 2010-08-05
I am trying to learn how to consume a web service using classic ASP.

I have found a simple example here:
http://www.wimdows.net/articles/article.aspx?aid=11

I have tried the sample code from the example above:

<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>

and I get an error:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/soaptest.asp, line 8

Invalid ProgID.

Line 8 is:
    Set oSOAP = Server.CreateObject("MSSOAP.SoapClient")

My machine is running Windows 2000 with IIS 5.0 and have installed the SOAP 3.0 Toolkit.
0
Comment
Question by:Clif
4 Comments
 
LVL 15

Accepted Solution

by:
joeposter649 earned 500 total points
ID: 12105849
Try this...
Sett oSOAP = Server.CreateObject("MSSOAP.SoapClient30")
0
 
LVL 20

Expert Comment

by:jitganguly
ID: 12105904
Hmmm
In order to run the sample in the code download, you need to download and install the SOAP Toolkit 2.0 (for free!).

so get it from here http://www.microsoft.com/downloads/details.aspx?familyid=d4490e52-5f6e-4127-9dc7-88b7c8f83b74&languageid=f49e8428-7071-4979-8a67-3cffcb0c2524&displaylang=en

and install it on the server. It should regixter the DLL, if not manually register it on your server
0
 
LVL 10

Author Comment

by:Clif
ID: 12111035
That's it exactly.  Thanks for the help.
0
 
LVL 1

Expert Comment

by:pankajgharge
ID: 24158274
What libraries do I need to register on machine manually?
I am facing the problem while creating --> Server.CreateObject("MSSOAP.SoapClient30")
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
add custom headers to my mail 2 55
rebind a grid after user clicks on node in treeview 1 35
Adding Row and Cell on a table 14 19
alert(innerHTML); 8 15
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question