Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to communicate java application to servlets using XML

 
Rangini Ramchander
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please send a code to communication with javaapplication to servlets r_ramchander@yahoo.com [CODE]
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rangini,
In case you haven't already tried, you may have better luck at one
of these Web sites:

http://www.rentacoder.com

http://www.hotdispatch.com

Good Luck,
Avi.
 
danny liu
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a. you can send messages within Http packets using HttpConnection or HttpClient from apache.

b. At the ends of the connection, xml-formatted messages are generated or parsed using XML API. You can use SAX,DOM, or any other XML packages.

Dan
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the hand-thrown end of things, you can send XML data inside a POST, pull it off the request in a servlet, then parse it any way you like. I just implemented an interface like that for a client with very limited scripting ability. Since it's a normal POST I can test it from a static HTML page with XML in an edit box. Dead simple, not to any particular standard except maybe REST architecture.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!