Solved

Web Service and Classic ASP

Posted on 2004-09-20
4
484 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now