|
-
Apr 27th, 2003, 06:06 PM
#1
Thread Starter
Addicted Member
Remote XML Files
I have searched all over the place trying to find a answer to my question.
What I need to do is be able to WRITE to an XML file on the internet. I have tried doing this with a dataset, but I keep getting an error saying "URI formats are not supported"
I have tried numerous different ways on setting the URI to something else...streams...formats...but none of seem to work. Here is what I am trying to do, but I just can't seem to brigde the gap:
VB Code:
Dim objDataSet As New System.Data.DataSet()
'Load the XML file in the data set
objDataSet.ReadXml("http://www.someplace.com/file.xml")
Dim v(1) As String
v(0) = userid
v(1) = Date.Today
'Add the data to the data set
objDataSet.Tables(0).Rows.Add(v)
'Write to updated data back to the XMl file
objDataSet.WriteXml("http://www.someplace.com/file.xml")
Also, do not bother telling me to create a web service because we do not have a server for it to run on. I bascially need to be able to have people download a .exe file and run it (no install -machine restrictions!)
Thanks
Ryan
-
Apr 27th, 2003, 09:40 PM
#2
On the webserver hosting the xml file are write permissions set?
-
Apr 27th, 2003, 09:53 PM
#3
Thread Starter
Addicted Member
Yes they are. I had thought about downloading the file using a stream and then ftping the file back to the server, but I really want to avoid that at all costs. Right now it looks like the only thing I can do. I'm hoping someone smarter than me knows a better solution.
-
Apr 27th, 2003, 11:08 PM
#4
I think you are going to be stuck downloading the file and uploading it again, sorry.
-
Apr 29th, 2003, 08:02 AM
#5
Thread Starter
Addicted Member
Actually I can't do that because of the potiental amount of people that could be downloading and uploading at the same time, then I could lose data.
There has go to be way to make this work...I looked into SOAP, but I have yet to find any examples on using SOAP with a windows app, they have all been in ASP.NET.
-
Apr 29th, 2003, 10:08 AM
#6
What resources do you have in the form of a server? I mean the xml files have to be hosted some how. Maybe look into using asp or php or any form of web query to do the work for you.
-
Apr 29th, 2003, 10:22 AM
#7
Thread Starter
Addicted Member
The only SSL our server supports is perl..which I know nothing about.
Really this could be done with a database or text file as well...just getting the program to write to a URI is the problem I am having.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|