Using Sockets and XML

Hi,

I have a problem of interleaving XML messages in a socket.

The problem revolves around sending a client command being issued through sockets to a server program which then bundles the answer back as an XML data stream back through sockets.

Now if a user issues one command say X and then straight away another command called Y, the server tries answering the first command but the response contains many X responses so response Y gets interleaved in between responses X.

All responses are in XML format.

Is there any known ways to overcome this problem or can anyone help me out please !!!

Help greatfully appreciated !!!

[690 byte] By [wakthar] at [2007-9-26 1:19:19]
# 1
In frameworks such as SOAP that use XML messaging, the header would contain information as to which request/call this reply is responding to.
swatdba at 2007-6-29 0:51:39 > top of Java-index,Core,Core APIs...