private void sendInfo(RequestData requestData,LoanVO vo) throws Exception{
requestData=EncryptUtil.encryptedData(requestData);
HttpPost request = new HttpPost(CoreConstants.YIXIN_URL);
request.setHeader("Accept", "application/json");
request.addHeader("Content-Type", "application/json; charset=UTF-8");
StringEntity se = new StringEntity(JSONObject.fromObject(requestData.getRealRequestData(requestData)).toString());
request.setEntity(se);
HttpResponse response = new DefaultHttpClient().execute(request);
String retSrc = EntityUtils.toString(response.getEntity());// 生成 JSON 对象
System.out.println("----------------返回的结果"+retSrc);
}
requestData=EncryptUtil.encryptedData(requestData);
HttpPost request = new HttpPost(CoreConstants.YIXIN_URL);
request.setHeader("Accept", "application/json");
request.addHeader("Content-Type", "application/json; charset=UTF-8");
StringEntity se = new StringEntity(JSONObject.fromObject(requestData.getRealRequestData(requestData)).toString());
request.setEntity(se);
HttpResponse response = new DefaultHttpClient().execute(request);
String retSrc = EntityUtils.toString(response.getEntity());// 生成 JSON 对象
System.out.println("----------------返回的结果"+retSrc);
}