I have a proceedure that reads data from a Web Service.
The data is sent back in a string. I can put this string into a Textbox,
which works fine.
I now need to get the data without the tags and was trying to use the
ReadXml method of a DataSet object. Apparently, this only works with
reading a file or datastream.
How do I get the data into my DataSet from a string?
Here is the program:
***************************************************************************************
Dim GetInfo As New localhost.Service1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Try
Dim Companies As String
Dim ktr As Integer
Dim DataSetObj As New DataSet
TextBox1.Text = GetInfo.GetCompanyInfo()
DataSetObj.ReadXml(TextBox1.Text)
Catch ex As Exception
TextBox1.Text = ex.Message
End Try
End Sub
**************************************************************************************
I get an error here that says:
"The path is too long after being fully qualified. Make sure path is
less than 260 characters."
I thought that I could just pass the string, but this isn't the case
(obviously). It thinks the xml is the file name.
Is there a way to get the XML data (from the web service) directly into a
string (or textbox as I have done) and then move it into the DataSetObj or
directly from web Service into the DataSet Object?
Thanks,
Tom