ASP XML Recordset to COM Object

I need to pass an asp xml recordset to a com object so I can write it out to a remote file server as a text file. (need com+ to run under a service account in order to access a remote server)

Can this be done by setting an rs property in the com object to the xml rs in asp or can I pass it as a parameter in a function call to the com object?

I've tried the function but this fails.

I'm not even sure I can do this. I can pass an xml stream from vb to asp but now need to pass it from asp to vb dll.
surfsista9Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

deighcCommented:
You could pass in the XML as a string.
Create a public string property in the appropriate class of your COM object and pass this the complete XML string from the XML DOM in your ASP page. You could then load this XML string into an XML DOM inside your COM object, and from there re-create the recordset object from the XML DOM.

Alternatively you could pass the entire XML DOM into the COM object.
Same process really, except that you have to create a public property of type XML DOM. Then it's simply a matter of recreating the recordset object from the XML DOM.

> ...or can I pass it as a parameter in a function call to the com object?

You could do this but, as I mentioned above, I think it makes more sense to pass in data from the ASP page by creating properties in the COM component and using these within the methods of your VB class(es).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Leo EikelmanDirector, IT and Business DevelopmentCommented:
Easiest solution would be:

Pass the XML as a String parameter to a funcition in the com object.

Then create a Scripting.FileSystemObject to write the xml string to a file.

cheers,

Leo
surfsista9Author Commented:
Gave points to deighc because his answer is closest to the soluiton.

I passed the rs as a variant to a property and this worked...very easy. did not have to recreate the dom.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.