• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

XML b/w Servlets?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can XML be passed between Servlets?
If so, then how?
Provide example please.
Thank you.
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
David Fouse
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes XML can be passd between servlet as string or as file
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!