Hi,
I have 2 web application ClientA and ServerB. On ClientA application My requirement is I need to read an XML from a file system and then send it to
ServerB. This XML needs to be sent to ServerB over HTTP or HTTPs. HTTP is enough right now. When ServerB receives the XML, it will
do some basic validation, say for example one of the validation is if it is well formed. If everything is fine it will send response back to
ClientA
Input Message:
<?xml version="1.0" encoding="ISO-8859-1"?>
<note>
<from>Jani</from>
<to>Tove</to>
<message>Send me Amount details</message>
</note>
Syschronous Response:
<?xml version="1.0" encoding="ISO-8859-1"?>
<response>
<Status code="201" text="Accepted">Acknowledged</Status>
</response>
Requirement 2:
On the server side I need to create a thread or a process which will read say n number of XMLs and send asychronously to ClientA.
<?xml version="1.0" encoding="ISO-8859-1"?>
<note>
<from>Tove</from>
<to>Jani</to>
<amount>29</amount>
</note>
How can it be done? Any thought on this.... I want to use Java/Servlets...