Hi,
You can write two socket classes for the two m/cs, one for your m/c and the
other for the m/c where your xml is lying. then call the server socket at
the remote m/c (which has to be deployed in the remote m/c). in the server
socket you can write code to get the content of that xml locally and write
to the outputstream of the socket. This way you get the xml contents.
similarly you can do the same for the database update.
regards,
partha

-----Original Message-----
From: Ashish Sarin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 4:08 PM
To: [EMAIL PROTECTED]
Subject: How to read an XML file on the internet using a servlet & to
upd ate an internet database


Hi all,

I have a scenario in which a servlet reads an XML file located on the
internet. I know the IP address of the machine on which the XML file is
located. I have to read that XML file and do some processing and then update
another database located on the internet, the IP address of which is also
known to me.

Please tell me how to do all this, and what kind of set up( web server, etc)
i need on the servers hosting the XML file and the database.

regards

ashish sarin

___________________________________________________________________________
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
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************

___________________________________________________________________________
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

Reply via email to