473,387 Members | 1,638 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Calling a .net Webservice from classic ASP

Currently I use the MS Soap Toolkit to expose some 20 or so com objects
for use by classic asp pages, this has to be replaced as support is
ending.
I have found two proposed solutions below and would appreciate any
comments, particularly from somone who has done this before.

Create a .net WS to expose the Com Objects
From searching the web it looks like a couple of options are available

to access the web service from classic asp:

1 Access the WS using the MSXML http component to create headers
ASP > MSXML > . net WS > COM ( interop)
This requires writing a lot of code, I've read also that the error
handling is difficult. Basically it sounds like writing soap toolkit
again in ASP.

2 Using .net create a .net assembly to call the WS using the .net ws
methods, expose this to the ASP page using a COM callable wrapper.
ASP > CCW ( interop) > .net Assembly > . net WS > COM ( interop)
In terms of stability this looks much better as the .net ws methods
will handle errors much better. Also it should be possible to design
the component in such a way as to minimise the amount of code to write.
However there is a lot of interop involved and I'm concerned about the
overhead involved.

Can anyone give me some pointers?

Mar 29 '06 #1
1 2073
Not sure you still need this, but I wrote a COM class that uses the MS SOAP
SDK and it has been used in a production environment for a couple of years so
it seems to be stable. I used it to call a .NET web service from a classic
ASP web application.

I believe I still have the code somewhere. Do you still need this?

"AnRonMor" wrote:
Currently I use the MS Soap Toolkit to expose some 20 or so com objects
for use by classic asp pages, this has to be replaced as support is
ending.
I have found two proposed solutions below and would appreciate any
comments, particularly from somone who has done this before.

Create a .net WS to expose the Com Objects
From searching the web it looks like a couple of options are available

to access the web service from classic asp:

1 Access the WS using the MSXML http component to create headers
ASP > MSXML > . net WS > COM ( interop)
This requires writing a lot of code, I've read also that the error
handling is difficult. Basically it sounds like writing soap toolkit
again in ASP.

2 Using .net create a .net assembly to call the WS using the .net ws
methods, expose this to the ASP page using a COM callable wrapper.
ASP > CCW ( interop) > .net Assembly > . net WS > COM ( interop)
In terms of stability this looks much better as the .net ws methods
will handle errors much better. Also it should be possible to design
the component in such a way as to minimise the amount of code to write.
However there is a lot of interop involved and I'm concerned about the
overhead involved.

Can anyone give me some pointers?

Apr 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Adam Short | last post by:
I am trying to write a routine that will connect a .NET server with a classic ASP server. I know the following code doesn't work! The data is being returned as a dataset, however ASP does not...
4
by: Julian Hershel | last post by:
Hi. I have a very simple web service that I am trying to call from a classic ASP page. The web service project and the ASP page are both on my development machine. That's the code of my web...
3
by: ryan.mclean | last post by:
Hi everyone! I'm hoping that someone can help me out. I have a webservice written in vb.net. This service uses the SoapHeader to secure the webservice to users that give a username and password....
2
by: Filippo | last post by:
Hi, I have to call a .Net WebService from a non .net Webserver. So I create an asp page that use the Soap Toolkit for calling the Webserver. The problem is that the webservice use authentication,...
2
by: Ramya A | last post by:
Hi All: I have a .NET webservice accepting an XML request document as a parameter How do I call this webservice with ServerXMLHTTP object from my VB6.0 client? I have enabled the HttpPost...
4
by: MarkusJNZ | last post by:
Hi, I am trying to pass an number from a classic asp webpage to a .NET webservice. Because my C# webservice expects an integer and classic ASP uses variants I keep getting problems with object...
1
by: Pim75 | last post by:
Hello, I've written a webservice that returns an array. The output of the webservice has to be consumed by a classic asp application. As classic asp can't read the returned array I want the...
0
by: =?Utf-8?B?QWRhbUM=?= | last post by:
Hi, I'm wondering if you can help. We have a classic asp application that creates and posts some XML using the SOAP format to a .NET WebService. The WebService and the asp are on the same IIS...
1
by: carled | last post by:
Hi all. New here and new to .net from classic asp. I have to access an xml-rpc webservice in .net and it's making my brain fry trying to get it all set up. I'm most comfortable with vb, but I can...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.