|
|
|
@ -29,7 +29,7 @@ public class CallEasBlacklistServices {
|
|
|
|
|
* @throws Exception
|
|
|
|
|
*/
|
|
|
|
|
public String[] syncBlacklist(List<Map<String, String>> list) throws Exception {
|
|
|
|
|
logger.info("CallEasBlacklistServices excute start syncBlacklist------------------------");
|
|
|
|
|
logger.error("CallEasBlacklistServices excute start syncBlacklist------------------------");
|
|
|
|
|
String[] resultArray = new String[2];
|
|
|
|
|
try {
|
|
|
|
|
if (list != null && list.size() >= 0) {
|
|
|
|
@ -63,6 +63,7 @@ public class CallEasBlacklistServices {
|
|
|
|
|
param.setCreateTime(modedatacreatedate + " " + modedatacreatetime);
|
|
|
|
|
param.setEndTime(yxjzq);
|
|
|
|
|
param.setReason(jyyy);
|
|
|
|
|
|
|
|
|
|
info.addBlackList(param);
|
|
|
|
|
}
|
|
|
|
|
info.setITFID("HT01BZ018");
|
|
|
|
@ -78,17 +79,19 @@ public class CallEasBlacklistServices {
|
|
|
|
|
HttpTransportPropertiesImpl.Authenticator auth = new HttpTransportPropertiesImpl.Authenticator();
|
|
|
|
|
auth.setUsername("pouser");
|
|
|
|
|
auth.setPassword("htjt_2018");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.kernel.http.HTTPConstants.AUTHENTICATE,auth);
|
|
|
|
|
SI_BlacklistSync_OUTServiceStub.BlackListSyncServiceResponse response = stub.sI_BlacklistSync_OUT(input);
|
|
|
|
|
logger.info("------- do webservice success -------");
|
|
|
|
|
logger.error("------- do webservice success -------");
|
|
|
|
|
SI_BlacklistSync_OUTServiceStub.ResultInfo resultInfo = response.get_return();
|
|
|
|
|
resultArray[0] = resultInfo.getISTAT();
|
|
|
|
|
resultArray[1] = resultInfo.getMESSAGE();
|
|
|
|
|
logger.info("do blacklist webservice:[state : " + resultArray[0] + "][message : " + resultArray[1] + "]");
|
|
|
|
|
logger.info("CallEasBlacklistServices excute success syncBlacklist------------------------");
|
|
|
|
|
logger.error("do blacklist webservice:[state : " + resultArray[0] + "][message : " + resultArray[1] + "]");
|
|
|
|
|
logger.error("CallEasBlacklistServices excute success syncBlacklist------------------------");
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception var19) {
|
|
|
|
|
logger.info("syncBlacklist error:" + var19.toString());
|
|
|
|
|
logger.error("syncBlacklist error:" + var19.toString());
|
|
|
|
|
resultArray[0] = "F";
|
|
|
|
|
resultArray[1] = var19.toString();
|
|
|
|
|
}
|
|
|
|
|