M
Marco Care'
I'm developing a PPC application in VB.NET.
As it start, the PPC App make a soket connection with a PC Server, from
wich the PPC receive a string containing an XML dataset.
The PC Server APP sent the string in the folowing routine:
Dim cSql As String = Mid(data, 11, 20)
Dim CN As New System.Data.SqlClient.SqlConnection(strConn)
Dim strSQL As String = "select cod, des from Articles"
Dim scmd As New System.Data.SqlClient.SqlCommand(strSQL, CN)
Dim da = New System.Data.SqlClient.SqlDataAdapter(scmd)
Dim ds As New DataSet
da.Fill(ds, "Articles")
strSQL = "select datemov, caumov from moviments scmd = New
System.Data.SqlClient.SqlCommand(strSQL, CN)
da = New System.Data.SqlClient.SqlDataAdapter(scmd)
da.Fill(ds, "Moviments")
strSQL = "select id, title from Books"
scmd = New System.Data.SqlClient.SqlCommand(strSQL, CN)
da = New System.Data.SqlClient.SqlDataAdapter(scmd)
da.Fill(ds, "Books")
cSql = ds.GetXml
sender.Send(cSql)
....
now, the PPC receive the xml string but
I'm not able to create the local dataset from this string
can someone help me ?
thanks
As it start, the PPC App make a soket connection with a PC Server, from
wich the PPC receive a string containing an XML dataset.
The PC Server APP sent the string in the folowing routine:
Dim cSql As String = Mid(data, 11, 20)
Dim CN As New System.Data.SqlClient.SqlConnection(strConn)
Dim strSQL As String = "select cod, des from Articles"
Dim scmd As New System.Data.SqlClient.SqlCommand(strSQL, CN)
Dim da = New System.Data.SqlClient.SqlDataAdapter(scmd)
Dim ds As New DataSet
da.Fill(ds, "Articles")
strSQL = "select datemov, caumov from moviments scmd = New
System.Data.SqlClient.SqlCommand(strSQL, CN)
da = New System.Data.SqlClient.SqlDataAdapter(scmd)
da.Fill(ds, "Moviments")
strSQL = "select id, title from Books"
scmd = New System.Data.SqlClient.SqlCommand(strSQL, CN)
da = New System.Data.SqlClient.SqlDataAdapter(scmd)
da.Fill(ds, "Books")
cSql = ds.GetXml
sender.Send(cSql)
....
now, the PPC receive the xml string but
I'm not able to create the local dataset from this string
can someone help me ?
thanks