Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Writing XML to a rmote server location


Message #1 by "T Wade" <twade@f...> on Sat, 11 May 2002 20:55:04
I've written a C#.net web app using VS.Net. My problem is, I can read a 
XML file from a URL using XMLDataDocument and use the Load method which 
binds to a Dataset. I can modify the dataset, but when I try and write the 
XML back to the remote server using the save method, which is the only 
method available to the XMLDataDocument. I get a error: Unsupported URI 
format. Now I don't understanding how can I read the xml file from a 
remote server, but cannot write it back. Is there something I'm missing??? 
Thank you in advance.
Thomas
Message #2 by Feduke Cntr Charles R <FedukeCR@m...> on Mon, 13 May 2002 09:39:10 -0400
Thomas,

	What does the URL look like that you're trying to save back to?  If
its something like "http://tempuri.org/file.xml", then you need to consider
that (at least to my knowledge) there is no default mechanism in place that
will allow you to arbitrarily write an XML file to a remote server, even
with proper permissions.  The .NET IDE does it via the highly insecure MS
FrontPage extensions, and I suppose you could write a class that does the
same (assuming the extensions are installed on the target server).  I think
that when you call the .Save method of the XMLDataDocument, it may be
looking for a path that you have access rights to (NT Lan Manager, AD or
other) and can be mapped to a device on your system/network (i.e.
c:\temp\data.xml or \\abyss\data\stuff.xml).

	Even better, you might want to consider writing a web service that
you post the XML data file back to, and it saves it on the server end.  This
would be, in my opinion, the least path of resistance.

HTH,
- Chuck

-----Original Message-----
From: T Wade [mailto:twade@f...]
Sent: Saturday, May 11, 2002 4:55 PM
To: ASP+
Subject: [aspx] Writing XML to a rmote server location


I've written a C#.net web app using VS.Net. My problem is, I can read a 
XML file from a URL using XMLDataDocument and use the Load method which 
binds to a Dataset. I can modify the dataset, but when I try and write the 
XML back to the remote server using the save method, which is the only 
method available to the XMLDataDocument. I get a error: Unsupported URI 
format. Now I don't understanding how can I read the xml file from a 
remote server, but cannot write it back. Is there something I'm missing??? 
Thank you in advance.
Thomas
Message #3 by "Thomas Wade" <twade@f...> on Mon, 13 May 2002 12:07:50 -0300
Chuck,

I've come to your final conculsion also. Thank you for your response.
Thomas
----- Original Message -----
From: "Feduke Cntr Charles R" <FedukeCR@m...>
To: "ASP+" <aspx@p...>
Sent: Monday, May 13, 2002 10:39 AM
Subject: [aspx] RE: Writing XML to a rmote server location


> Thomas,
>
> What does the URL look like that you're trying to save back to?  If
> its something like "http://tempuri.org/file.xml", then you need to
consider
> that (at least to my knowledge) there is no default mechanism in place
that
> will allow you to arbitrarily write an XML file to a remote server, even
> with proper permissions.  The .NET IDE does it via the highly insecure MS
> FrontPage extensions, and I suppose you could write a class that does the
> same (assuming the extensions are installed on the target server).  I
think
> that when you call the .Save method of the XMLDataDocument, it may be
> looking for a path that you have access rights to (NT Lan Manager, AD or
> other) and can be mapped to a device on your system/network (i.e.
> c:\temp\data.xml or \\abyss\data\stuff.xml).
>
> Even better, you might want to consider writing a web service that
> you post the XML data file back to, and it saves it on the server end.
This
> would be, in my opinion, the least path of resistance.
>
> HTH,
> - Chuck
>
> -----Original Message-----
> From: T Wade [mailto:twade@f...]
> Sent: Saturday, May 11, 2002 4:55 PM
> To: ASP+
> Subject: [aspx] Writing XML to a rmote server location
>
>
> I've written a C#.net web app using VS.Net. My problem is, I can read a
> XML file from a URL using XMLDataDocument and use the Load method which
> binds to a Dataset. I can modify the dataset, but when I try and write the
> XML back to the remote server using the save method, which is the only
> method available to the XMLDataDocument. I get a error: Unsupported URI
> format. Now I don't understanding how can I read the xml file from a
> remote server, but cannot write it back. Is there something I'm missing???
> Thank you in advance.
> Thomas
>
>


  Return to Index