Connecting Tech Pros Worldwide Forums | Help | Site Map

Send XML File

Thom Little
Guest
 
Posts: n/a
#1: Sep 5 '08
I need to transfer an XML file between .NET C# windows application and an
HTTP server. This would in fact be a copy of the application's .config
file.

I would like the transfer to start under program control and not require the
user's interaction.

Is there a published technique to permit transfer of an XML file with a
predefined name and no user interaction?

.... Thom
__________________________________________________ _
Thom Little - www.tlanet.net - Thom Little Associates, Ltd.

=?ISO-8859-1?Q?Arne_Vajh=F8j?=
Guest
 
Posts: n/a
#2: Sep 5 '08

re: Send XML File


Thom Little wrote:
Quote:
I need to transfer an XML file between .NET C# windows application and an
HTTP server. This would in fact be a copy of the application's .config
file.
>
I would like the transfer to start under program control and not require the
user's interaction.
>
Is there a published technique to permit transfer of an XML file with a
predefined name and no user interaction?
A simple POST with HttpWebRequest (or WebCLient) to a server side
script that saves the XML should do it.

Arne
Duggi
Guest
 
Posts: n/a
#3: Sep 5 '08

re: Send XML File


On Sep 5, 6:19*am, "Thom Little" <t...@tlanet.netwrote:
Quote:
I need to transfer an XML file between .NET C# windows *application andan
HTTP server. *This would in fact be a copy of the application's .config
file.
>
I would like the transfer to start under program control and not require the
user's interaction.
>
Is there a published technique to permit transfer of an XML file with a
predefined name and no user interaction?
>
... Thom
__________________________________________________ _
* *Thom Little *- *www.tlanet.net*- *Thom Little Associates, Ltd.
any of the existing http libraries in framework can do that..
Its only posting an http POST request to the webserver.

-Cnu
Duggi
Guest
 
Posts: n/a
#4: Sep 5 '08

re: Send XML File


On Sep 5, 6:19*am, "Thom Little" <t...@tlanet.netwrote:
Quote:
I need to transfer an XML file between .NET C# windows *application andan
HTTP server. *This would in fact be a copy of the application's .config
file.
>
I would like the transfer to start under program control and not require the
user's interaction.
>
Is there a published technique to permit transfer of an XML file with a
predefined name and no user interaction?
>
... Thom
__________________________________________________ _
* *Thom Little *- *www.tlanet.net*- *Thom Little Associates, Ltd.
A step by step process is here

http://support.microsoft.com/kb/323246

-Cnu
Anthony Jones
Guest
 
Posts: n/a
#5: Sep 5 '08

re: Send XML File


"Duggi" <DuggiSrinivasaRao@gmail.comwrote in message
news:97e195c5-0256-4aaf-b862-99a0f6e9da40@c58g2000hsc.googlegroups.com...
On Sep 5, 6:19 am, "Thom Little" <t...@tlanet.netwrote:
Quote:
I need to transfer an XML file between .NET C# windows application and an
HTTP server. This would in fact be a copy of the application's .config
file.
>
I would like the transfer to start under program control and not require
the
user's interaction.
>
Is there a published technique to permit transfer of an XML file with a
predefined name and no user interaction?
>
... Thom
__________________________________________________ _
Thom Little - www.tlanet.net - Thom Little Associates, Ltd.
A step by step process is here

http://support.microsoft.com/kb/323246

-Cnu
Quote:
Quote:
Quote:
>>>>>
That link is for uploading files via a browser interface. Not relevant to
the OP.


--
Anthony Jones - MVP ASP/ASP.NET


Anthony Jones
Guest
 
Posts: n/a
#6: Sep 5 '08

re: Send XML File


Thom Little" <thom@tlanet.netwrote in message
news:eVOFkVvDJHA.3392@TK2MSFTNGP03.phx.gbl...
Quote:
>I need to transfer an XML file between .NET C# windows application and an
HTTP server. This would in fact be a copy of the application's .config
file.
>
I would like the transfer to start under program control and not require
the
user's interaction.
>
Is there a published technique to permit transfer of an XML file with a
predefined name and no user interaction?
>
WebClient.UploadFile method would probably suit your needs

--
Anthony Jones - MVP ASP/ASP.NET

Thom Little
Guest
 
Posts: n/a
#7: Sep 5 '08

re: Send XML File


I needed a nudge to overcome my inertia. The article reference was exactly
what I needed.

Thank you everyone for your help.

.... Thom
__________________________________________________ _
Thom Little - www.tlanet.net - Thom Little Associates, Ltd.
Thom Little
Guest
 
Posts: n/a
#8: Sep 5 '08

re: Send XML File


I'll check it out.

Thanks for the lead.

.... Thom
__________________________________________________ _
Thom Little - www.tlanet.net - Thom Little Associates, Ltd.
Closed Thread