By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,627 Members | 2,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,627 IT Pros & Developers. It's quick & easy.

VB COM component, intrinsic ASP objects and ASP.NET web services

P: n/a
I I have a number of VB COM components used in ASP pages that access some
intrinsic ASP objects. Basically we would get the context from COMSVCSLib
and from there get the ASP Request and Response objects. With the Request
object we would extract Form variables, do some processing, create an XML
file and then write an XML file to the Response object.

Something like:
Private Sub _Activate()

Set Ctx = GetObjectContext()
Set ResObj = Ctx("Response")
Set ReqObj = Ctx("Request")

End Sub
.. . .
strXmlDoc_IN = ReqObj.Form.Item(1)
strXmlDoc_OUT = ProcessXml(strXmlDoc_IN)

moResponse.AddHeader "content-type", "text/xml"
ResObj.Write strXmlDoc_OUT
I would now like to use these COM objects in a .NET web service environment.
My guess is that, aside from having to create a Runtime Callable Wrapper for
each COM component, I will have to rewrite these COM objects so that they do
not use the intrinsic ASP objects, since, these intrinsic objects are not
available in “web services” (or am I mistaken). Something like rewriting the
COM components to take a string as a parameter (rather than looking in the
Request obj) and pass back the XML doc as a string (rather than writing to
the Response obj).

Any thoughts would be appreciated.

Nov 23 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.