Have you considered using web services or remoting?
All the socket menutiae is handled for you.
Other than that, you'll need to either use an XmlTextWriter
to stream the XML over the socket, or do it manually by
using a text encoder from the System.Text space. UTF8 is the
most common. You can convert an XML string into a byte[]
which you can send over the socket. On the other end, use
your XmlTextReader, or the Encoding.UTF8 to turn it back
into an XML Document or an XML string respectively.
-c
"abdul bari" <ah******@yahoo.com> wrote in message
news:1a**************************@posting.google.c om...
I have an xml file stored on the client, the client opens the tcp
connection to the server, as soon as it opens the connection I want
the XML to be uploaded to the server.
cheers abz
"Chris Capel" <ch***@ibanktech.net.zerospam> wrote in message
news:<#o**************@TK2MSFTNGP10.phx.gbl>...
It really depends on how the XML is stored on the server. Is it made
available as a file over HTTP, FTP, or SMB? Or is it dynamically
generated as it's being sent?
Chris
"abdul bari" <ah******@yahoo.com> wrote in message
news:1a**************************@posting.google.c om... What's the simplest way of sending XML from a client to a server?
thanks
abz