Hi,
I am trying to connect to an xml file on HTTP server through Java Application using following code.
try
{
URL url = new URL("http://***.***.**.**:4319/***.xml");
is = url.openStream();
InputSource xmlFile = new InputSource(is);
parser.parse(xmlFile);
}
catch (FileNotFoundException fnfe)
{
logger.logAlways(fnfe.getMessage(),LOG_SOURCE);
if (fnfe.getMessage() == null)
logger.logError(fnfe);
}
catch (SAXException saxe)
{
logger.logAlways(saxe.getMessage(),LOG_SOURCE);
logger.logError(saxe);
}
finally
{
if(is != null)
is.close();
}
This code has been working for more than a year.
But recently I found a strange problem.
I am getting "Connection refused" from this code
but I can connect to the xml file from browser.
Does anybody have any idea?
[ June 14, 2002: Message edited by: supriya_s ]