import java.io.IOException;
import java.net.HttpURLConnection;import java.net.MalformedURLException;
import java.net.URL;
URL iurl;
boolean result=false;
try {
iurl = new URL("https://svn.apache.org/repos/asf/airavata/sandbox/xbaya-web/test/Calculator.wsdl");
HttpURLConnection uc = (HttpURLConnection)iurl.openConnection();
uc.connect();
System.out.println("==================="+uc.getResponseCode());
System.out.println("Content type"+uc.getContentType());
} catch (MalformedURLException e) {
System.out.println("Malformed URL Exception");
} catch (IOException e) {
System.out.println("IO Exception");
}