Solved

Web Service and Classic ASP

Posted on 2004-09-20
4
487 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

740 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