T
Tor Christian
Hi
I am using a VB6 client which connects to a web service using soap3.0
The client is querying a MSDE and filling up a ADODB.recordset. What I
am trying to acomplish is to send this recordset to the web service
where it will be inserted into another MSDE. Much like a batch job.
The client
-------------------------------------------------------------------------
Dim r As ADODB.Recordset
Dim xml as string
Set r = m_us.db.connection1.Execute("Select * from status") 'Get a
recordset from an ado wrapper
r.Save "c:\doit.xml", adPersistXML ' Save the recordset to disk in XML
format
xml=readXmlFromDisk()'Read the xml from disk into a string
m_service.uploadData(xml)'Use soap to send the string to the
webservice
The web service using C#
--------------------------------------------------------------------------
[WebMethod]
public bool uploadData(string data)
{
//How do I grab the xml string and insert the data into a table?
//My best suggestion is to convert the XML string into a dataset(don`t
know how)
//and save this dataset into the MSDE
}
Thanks
Tor Christian
I am using a VB6 client which connects to a web service using soap3.0
The client is querying a MSDE and filling up a ADODB.recordset. What I
am trying to acomplish is to send this recordset to the web service
where it will be inserted into another MSDE. Much like a batch job.
The client
-------------------------------------------------------------------------
Dim r As ADODB.Recordset
Dim xml as string
Set r = m_us.db.connection1.Execute("Select * from status") 'Get a
recordset from an ado wrapper
r.Save "c:\doit.xml", adPersistXML ' Save the recordset to disk in XML
format
xml=readXmlFromDisk()'Read the xml from disk into a string
m_service.uploadData(xml)'Use soap to send the string to the
webservice
The web service using C#
--------------------------------------------------------------------------
[WebMethod]
public bool uploadData(string data)
{
//How do I grab the xml string and insert the data into a table?
//My best suggestion is to convert the XML string into a dataset(don`t
know how)
//and save this dataset into the MSDE
}
Thanks
Tor Christian