XML is just data. It can be passed between any java objects in the same way as any other data : - via files, via sockets, via RMI, CORBA etc. If the servlets are in the same web application you can also pass Java objects by storing them in the session or the application contexts. What do you want to do with this XML data?
This application is B2B. Business 1 is sending an XML document to Business 2. I work for Business 2. Business 2 parses the XML document, uses the information in a query statement, generates an XML document with the results from the query statement, and then returns it to Business 1. I would like to develop my side of this application using Java Servlets and possibly Java Beans. At this time I don't know how Business 1 is developing there application. Any suggestions? [This message has been edited by David Fouse (edited March 01, 2001).]
posted 18 years ago
Well, using servlets only makes sense if they send the XML to you via HTTP. In which case, you should really send the reply back the same way.