private S2SMessagePostOperationSoapOut CreateS2SErrorMessageAndReturn(S2SMessagePostOperationSoapOut 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 S2SMessagePostOperationSoapOut FillS2SMessageToResponse(S2SMessagePostOperationSoapOut result, s2sMessage target)
 {
     string response = this.GetS2SMessageResponse(target);
     result.Response = new Contracts.Dto.EBS2SMS.ResponseType()
     {
         response = response
     };
     return result;
 }