private String retrieveResult(String code, int phase, String generalTestCode) {
String jsonResult = "";
try {
//URL url = new URL(resultUrl + "?ResumeID=" + code + "&cpxh=" + phase + "&Authorization=cgnpc2010");
URL url = new URL(resultUrl + "?ResumeID=" + code + "&GeneralTestCode=" + generalTestCode + "&Authorization=cgnpc2010");
Reader reader = new InputStreamReader(new BufferedInputStream(url
.openStream()), "gb2312");
int c;
while ((c = reader.read()) != -1) {
jsonResult += (char) c;
}
reader.close();
} catch (Exception exp) {
log.error("EvaluateManagerNormStarImpl.retrieveResult", exp);
}
return jsonResult;
}
String jsonResult = "";
try {
//URL url = new URL(resultUrl + "?ResumeID=" + code + "&cpxh=" + phase + "&Authorization=cgnpc2010");
URL url = new URL(resultUrl + "?ResumeID=" + code + "&GeneralTestCode=" + generalTestCode + "&Authorization=cgnpc2010");
Reader reader = new InputStreamReader(new BufferedInputStream(url
.openStream()), "gb2312");
int c;
while ((c = reader.read()) != -1) {
jsonResult += (char) c;
}
reader.close();
} catch (Exception exp) {
log.error("EvaluateManagerNormStarImpl.retrieveResult", exp);
}
return jsonResult;
}