diff --git a/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/srmoa/CallSrmServices.java b/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/srmoa/CallSrmServices.java index 6d36ec2..3e4a0b3 100644 --- a/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/srmoa/CallSrmServices.java +++ b/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/srmoa/CallSrmServices.java @@ -17,15 +17,18 @@ public class CallSrmServices extends BaseBean { private OaSrmVendorPropmtionServiceServiceStub.OaInputVendor oainputvendor = null; @Autowired - private static ConfigProp configProp; + private ConfigProp configProp; public void setOainputvendor(OaSrmVendorPropmtionServiceServiceStub.OaInputVendor oasrm) { this.oainputvendor = oasrm; } public String[] call() throws RemoteException { // this(configurationContext, Prop.getPropValue("htsrmoasync","gyszznew")); + String[] rtInfo = new String[3]; + try{ logger_a535240a.error(String.valueOf("调用接口------------------------开始")); String url = configProp.getGyszznew(); + logger_a535240a.error(String.valueOf("url-----------------------"+ url)); OaSrmVendorPropmtionServiceServiceStub stub = new OaSrmVendorPropmtionServiceServiceStub(url); // 设置传入参数 OaSrmVendorPropmtionServiceServiceStub.OA_SRM_VENDOR_PROPMTIONE createRequest = new OaSrmVendorPropmtionServiceServiceStub.OA_SRM_VENDOR_PROPMTIONE(); @@ -39,10 +42,13 @@ public class CallSrmServices extends BaseBean { OaSrmVendorPropmtionServiceServiceStub.OaOutputVendor oaoutvendor = resp.getOA_SRM_VENDOR_PROPMTIONResponse().getOutputTab(); // 封装返回 logger_a535240a.error(oainputvendor.getRequestId() + " result:" + oaoutvendor.getIstat() + " " + oaoutvendor.getSrmsage()); - String[] rtInfo = new String[3]; rtInfo[0] = oaoutvendor.getRequestId(); rtInfo[1] = oaoutvendor.getIstat(); rtInfo[2] = oaoutvendor.getSrmsage(); + }catch(Exception e ){ + e.printStackTrace(); + logger_a535240a.error(" CallSrmServices Exception " + e ); + } return rtInfo; } }