Ben wrote:
Quote:
dim theclient as TcpClient = thelistener.AcceptTcpClient()
dim thestream as NetworkStream = theclient.GetStream()
dim recdxmldoc as new XmlDocument()
recdxmldoc.Load(thestream) |
I'm /guessing/ things are getting confused as to when and where the
incoming (to the server) data stream is supposed to /end/.
I'd be more tempted to capture and buffer up the incoming stream and
look for the end of the Xml - essentially buffer.EndsWith("</tag>").
Once you've got the whole Xml safely into the server, you can feed it
into the Xml document, muck about with it, then send the result back.
HTH,
Phill W.