private S2SEndPoint_processS2SMessageResponse CreateS2SErrorMessageAndReturn(S2SEndPoint_processS2SMessageResponse result, ref long messageId,
     string errorCode, string message, bool updateMessageId)
 {
     var msg = this.CreateS2SErrorMessage(ref messageId, errorCode, message);
     if (updateMessageId) _di.UpdateSettingValue(LASTMSGID_RECV, messageId.ToString());
     return this.FillS2SMessageToResponse(result, msg);
 }
 private S2SEndPoint_processS2SMessageResponse FillS2SMessageToResponse(S2SEndPoint_processS2SMessageResponse result, s2sMessage target)
 {
     string response = this.GetS2SMessageResponse(target);
     result.Response = new Contracts.Dto.EBS2SMS.processS2SMessageResponse()
     {
         @return = response
     };
     return result;
 }