Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

Sending XML over HTTP to Another Application

 
Ajoo Dar
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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... or if we can use webservices or JMS. I want to do it using Java technology
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic