Results 1 to 7 of 7

Thread: Remote XML Files

  1. #1

    Thread Starter
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251

    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:
    1. Dim objDataSet As New System.Data.DataSet()
    2.  
    3.         'Load the XML file in the data set
    4.         objDataSet.ReadXml("http://www.someplace.com/file.xml")
    5.  
    6.         Dim v(1) As String
    7.         v(0) = userid
    8.         v(1) = Date.Today
    9.  
    10.         'Add the data to the data set
    11.         objDataSet.Tables(0).Rows.Add(v)
    12.  
    13.         'Write to updated data back to the XMl file
    14.         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
    ~Ryan





    Have I helped you? Please Rate my posts.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    On the webserver hosting the xml file are write permissions set?

  3. #3

    Thread Starter
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    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.
    ~Ryan





    Have I helped you? Please Rate my posts.

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I think you are going to be stuck downloading the file and uploading it again, sorry.

  5. #5

    Thread Starter
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    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.
    ~Ryan





    Have I helped you? Please Rate my posts.

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  7. #7

    Thread Starter
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    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.
    ~Ryan





    Have I helped you? Please Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width