Hi,
This sounds like a job for SOAP.
http://xml.apache.org/soap/index.html. SOAP is it's most basic form is XML
over HTTP. You'll find more at the SOAP site.
If SOAP is too much for you, you can parse the response object yourself and
construct the DOM object out of that. See the examples which come with
Xerces http://xml.apache.org/xerces-j/index.html for info on how to create a
DOM object. You will have to take the example a step forward to creating one
out of the response object. Looks interesting :-).
HTH,
Anil
----------------------------------------------
Anil Colin Lobo
Senior Software Engineer
Aztec Software and Technology Services Ltd.
Web: http://www.aztec.soft.net
Office Address:
Aztec Software and Technology Services Ltd
23, 3rd A Cross, 18th Main, 6th Block, Koramangala, Bangalore - 560095
Phone: 091-080-5522892 extn 101
-----Original Message-----
From: Harvey A Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 2:21 AM
To: [EMAIL PROTECTED]
Subject: Servlet Parsing HTTP Response with XML DOM
I have 2 servlets on different servers communicating with each other with
HTTP
POST command. The response sent by the 2nd servlet back to the first
servlet is
an XML document. I would like to do two things:
1) Parse the response into an XML DOM object, but I can't figure out how to
have the DOM parser read the XML document from the HTTP response instead of
from
a file.
2) In my servlet I want to be able to locate a table returned within the DOM
object and iterate over just that one table in the DOM object.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html