aspose file tools
The moose likes Web Services and the fly likes check web sevice availability/ connection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "check web sevice availability/ connection" Watch "check web sevice availability/ connection" New topic
Author

check web sevice availability/ connection

sandeepkum kumar
Greenhorn

Joined: Oct 11, 2011
Posts: 3
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: check web sevice availability/ connection
 
Similar Threads
HttpURLConnection Best Practices
Sending a http-request without waiting for response
DELETE http request in HttpURLConnection....
View HTML source using Java?
Web Service Availability