Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Log a Connection refused error ?  RSS feed

 
Mano Than
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am new to Webservice and i am not trying to lookup for a web service, that is hosted on a remote server.
I have created a SOAP request and am trying to access the Web Service.
My Question is,
Whenever the Web service-hosted server is down, i want to log the request data as an XML file.

Basically i need to handle the Connection Refused exception..

any help/input is most appreciated..

Regards
Manohar
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch Manoharan..

You can log this error like anyother error logging style, we have forum on log4j, folks their may help you better.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!