I am calling a url using this code
URL url = new URL(urlString);
HttpURLConnection httpCon = (HttpURLConnection) url
.openConnection();
httpCon.setRequestMethod("HEAD");
httpCon.setConnectTimeout(1200000);
httpCon.setReadTimeout(1200000);
httpCon.setRequestMethod("GET");
httpCon.setRequestProperty("Content-Type", "application/json");
int responseCode = httpCon.getResponseCode();
System.out.println(responseCode);
i am running a webservice in development server using local source code.the reponse is not coming back
note:-the service running time is 7-8 min.
ResponseinJSONby usingAPI Call?