Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

check web sevice availability/ connection

 
sandeepkum kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


I am consuming web service using axis2.

I want to know that how can i check availability of web service, is it running or not in java.

can I test through ping but i assume its not the good way to test the web service. there must be another way to test web service.

example :

URL url = new URL("http://1xx.00.0.x/wsa/wsa1/wsdl?targetURI=proms");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
int res = connection.getResponseCode();
if(res==200)
{
System.out.println("running : "+res);
}

So please reply soon its urgent.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic