|
|
@@ -1960,14 +1960,16 @@ namespace Dongke.IBOSS.PRD.Service.SAPHegiiDataService
|
|
|
{
|
|
|
sapResult = new ZPPFM008Response();
|
|
|
sapResult.ZTYPE = "E";
|
|
|
- if (ex is System.ServiceModel.FaultException)
|
|
|
- {
|
|
|
- sapResult.ZMSG = ex.Message;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- sapResult.ZMSG = "DKMES-ERROR:" + Guid.NewGuid();
|
|
|
- }
|
|
|
+ sapResult.ZMSG = ex.Message;
|
|
|
+
|
|
|
+ //if (ex is System.ServiceModel.FaultException)
|
|
|
+ //{
|
|
|
+ // sapResult.ZMSG = ex.Message;
|
|
|
+ //}
|
|
|
+ //else
|
|
|
+ //{
|
|
|
+ // sapResult.ZMSG = "DKMES-ERROR:" + Guid.NewGuid();
|
|
|
+ //}
|
|
|
OutputLog.TraceLog(LogPriority.Error,
|
|
|
"HGSAPDK_ZPPFM008",
|
|
|
sapResult.ZMSG,
|
|
|
@@ -1991,11 +1993,11 @@ namespace Dongke.IBOSS.PRD.Service.SAPHegiiDataService
|
|
|
// 登录
|
|
|
UserNamePasswordClientCredential credential =
|
|
|
sapClient.ClientCredentials.UserName;
|
|
|
- credential.UserName = "hgsapdk";
|
|
|
- credential.Password = "Sapdk#240";
|
|
|
- //INIUtility ini = INIUtility.Instance(INIUtility.IniFile.SAP_HEGII);
|
|
|
- //credential.UserName = ini.ReadIniData("SAP_HEGII", "UserName");
|
|
|
- //credential.Password = ini.ReadIniData("SAP_HEGII", "Password");
|
|
|
+ //credential.UserName = "hgsapdk";
|
|
|
+ //credential.Password = "Sapdk#240";
|
|
|
+ INIUtility ini = INIUtility.Instance(INIUtility.IniFile.SAP_HEGII);
|
|
|
+ credential.UserName = ini.ReadIniData("SAP_HEGII", "UserName");
|
|
|
+ credential.Password = ini.ReadIniData("SAP_HEGII", "Password");
|
|
|
// 参数
|
|
|
sapParameter.ZSUMSpecified = true;
|
|
|
sapParameter.TABLE_OUT = new ZSPP110[0];
|
|
|
@@ -2035,14 +2037,16 @@ namespace Dongke.IBOSS.PRD.Service.SAPHegiiDataService
|
|
|
{
|
|
|
sapResult = new ZPPFM010Response();
|
|
|
sapResult.ZTYPE = "E";
|
|
|
- if (ex is System.ServiceModel.FaultException)
|
|
|
- {
|
|
|
- sapResult.ZMSG = ex.Message;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- sapResult.ZMSG = "DKMES-ERROR:" + Guid.NewGuid();
|
|
|
- }
|
|
|
+ sapResult.ZMSG = ex.Message;
|
|
|
+
|
|
|
+ //if (ex is System.ServiceModel.FaultException)
|
|
|
+ //{
|
|
|
+ // sapResult.ZMSG = ex.Message;
|
|
|
+ //}
|
|
|
+ //else
|
|
|
+ //{
|
|
|
+ // sapResult.ZMSG = "DKMES-ERROR:" + Guid.NewGuid();
|
|
|
+ //}
|
|
|
OutputLog.TraceLog(LogPriority.Error,
|
|
|
"HGSAPDK_ZPPFM010",
|
|
|
sapResult.ZMSG,
|