I am doing something similar to your requirement.
I know of 2 possible ways
If either of the 2 sites has an FTP server , the XML file can be stored on the
FTP directory and your java client application
can retrieve the file from the FTP site.(using net.FTPClient class)
The other option is to upload the xml file via a HTTP post using a file
uploadservlet and then have your application get that file.
Make a url connection
URl url = new URl("otherserver/xml_folder/xml_filename")
URlConnection urlC= url.openConnection();
InputStream is = url.openStream()
FileOutputStream fos = new("yourserver/xml_directory/xml_filename")
int xmlchar;
while ( (xmlchar=is.read()) != -1 )
{
fos.write(xmlchar);
}
is.close
fos.close;
hope this gives you some direction
Santosh
Howard Lee <[EMAIL PROTECTED]> on 08/04/2000 01:12:30 PM
Please respond to A mailing list about Java Server Pages specification and
reference <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Santosh Daryani/IT/Aon Consulting)
Subject: Help! XML intergration!
Hi folks,
Maybe some of you have done this before and shed some light on me. We have a
third party vendor who is working on web pages which basically collect
information and turn it into XML and wants to give it to us (they are on a
separate web server). Our environment is EJB/JSP/Servlet, and my question is
how should I receive that XML file? I thought about them passing me URI of
the XML file and from that URI I go grab the XML file, but I thought it
could get messy (cleaning up old XML files etc). Any idea how I should
approach this? What would be the best approach to this? Thank you very much
folks!
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets