list xml files residing in another web server

vb.net , asp.net , sql2000 , vs2003 India
  • 12 years ago
    hello, i am using .net 1.1,vb ,i have 2 web applications.one is installed in client side server which is currently working offline(intranet)..other is at my side which is online website.frequently i have to give master data to client .So using httprequest and xml , i am giving him data.I have given one option to client side application from where he connects to online application and fetches the data. now the problem is that he is asking for previous xml files also so i have to display him the list of xml files in a listbox from where he can choose any file and retrive the data to sql database.. I am using following code for fetching one file at a time : Dim objResponse As HttpWebResponse Dim Myuri As New Uri("http://website/xxx.xxx.xxx.xxx/files/xmlfile.xml") Dim objRequest As WebRequest = WebRequest.Create(Myuri) Dim objStreamReader As StreamReader Dim SB As New StringBuilder dim ds as new dataset dim dt as new datatable Dim XW As New XmlTextWriter(New StringWriter(SB)) objResponse = CType(objRequest.GetResponse, HttpWebResponse) objStreamReader = New StreamReader(objResponse.GetResponseStream()) Dim xmlRepDoc As New XmlDocument xmlRepDoc.Load(objStreamReader) xmlRepDoc.WriteTo(XW) XW.Close() ds.ReadXml(New StringReader(SB.ToString)) dt = ds.Tables(0)

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Memory is like an orgasm. It's a lot better if you don't have to fake it.” - Seymour Cray