How can I go about transforming an ADODB.Recordset in such a way that it's
XML representation can be passed as a parameter to a Web Service?
I have an app that consumes a Web Service. I have an ADODB.Recordset in my
app that I need to pass as a parameter to the Web Service. I know it cannot
be passed in the form it is in as the recordset cannot be serialized.
Robert Hill
Senior Programmer/Analyst
Wake Forest Univ Baptist Med Ctr
Christoph Schittko [MVP] - 29 Dec 2004 03:04 GMT
Robert,
You can load the data from the ADO recordset into an ADO.NET DataSet [0]
and pass the DataSet to the Web Service. Bear in mind that the DataSet
is an opaque (untyped) container just like the ADO Recordset. Since
loading the data into a DataSet already involves looping through the
entire recordset, you may want to consider a strongly typed solution
instead of the DataSet, if it makes sense for your application.
HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko
[0]
http://samples.gotdotnet.com/quickstart/howto/doc/adoplus/adorstodataset
.aspx
> -----Original Message-----
> From: Marathoner [mailto:Marathoner@discussions.microsoft.com]
[quoted text clipped - 15 lines]
> Senior Programmer/Analyst
> Wake Forest Univ Baptist Med Ctr
Dilip Krishnan - 29 Dec 2004 03:28 GMT
Hello Marathoner,
Try this article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/bdad
otnetwebservice1.asp
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
> How can I go about transforming an ADODB.Recordset in such a way that
> it's XML representation can be passed as a parameter to a Web Service?
[quoted text clipped - 7 lines]
> Senior Programmer/Analyst
> Wake Forest Univ Baptist Med Ctr