在 Azure 逻辑应用中创建用于跟踪 AS2 消息的架构Create schemas for tracking AS2 messages in Azure Logic Apps

若要帮助你监视企业到企业 (B2B) 事务的成功、错误和消息属性,可以在集成帐户中使用以下 AS2 跟踪架构:To help you monitor success, errors, and message properties for business-to-business (B2B) transactions, you can use these AS2 tracking schemas in your integration account:

  • AS2 消息跟踪架构AS2 message tracking schema
  • AS2 消息处置通知 (MDN) 跟踪架构。AS2 Message Disposition Notification (MDN) tracking schema

AS2 消息跟踪架构AS2 message tracking schema

{
   "agreementProperties": {
      "senderPartnerName": "",
      "receiverPartnerName": "",
      "as2To": "",
      "as2From": "",
      "agreementName": ""
   },
   "messageProperties": {
      "direction": "",
      "messageId": "",
      "dispositionType": "",
      "fileName": "",
      "isMessageFailed": "",
      "isMessageSigned": "",
      "isMessageEncrypted": "",
      "isMessageCompressed": "",
      "correlationMessageId": "",
      "incomingHeaders": {},
      "outgoingHeaders": {},
      "isNrrEnabled": "",
      "isMdnExpected": "",
      "mdnType": ""
    }
}
propertiesProperty 必选Required 类型Type 说明Description
senderPartnerNamesenderPartnerName No StringString AS2 消息发送者的合作伙伴名称AS2 message sender's partner name
receiverPartnerNamereceiverPartnerName No StringString AS2 消息接收者的合作伙伴名称AS2 message receiver's partner name
as2Toas2To Yes StringString AS2 消息接收者的名称,来自 AS2 消息的标头AS2 message receiver's name from the headers of the AS2 message
as2Fromas2From Yes StringString AS2 消息发送者的名称,来自 AS2 消息的标头AS2 message sender's name from the headers of the AS2 message
agreementNameagreementName No StringString 解析消息的 AS2 协议名称Name of the AS2 agreement to which the messages are resolved
directiondirection Yes StringString 消息流的方向,receivesendDirection of the message flow, which is either receive or send
messageIdmessageId No StringString AS2 消息 ID,来自 AS2 消息的标头AS2 message ID from the headers of the AS2 message
dispositionTypedispositionType No StringString 消息处置通知 (MDN) 处置类型值Message Disposition Notification (MDN) disposition type value
fileNamefileName No StringString 文件名,来自 AS2 消息的标头File name from the header of the AS2 message
isMessageFailedisMessageFailed Yes BooleanBoolean AS2 消息是否已失败Whether the AS2 message failed
isMessageSignedisMessageSigned Yes BooleanBoolean AS2 消息是否已签名Whether the AS2 message was signed
isMessageEncryptedisMessageEncrypted Yes BooleanBoolean AS2 消息是否已加密Whether the AS2 message was encrypted
isMessageCompressedisMessageCompressed Yes BooleanBoolean AS2 消息是否已压缩Whether the AS2 message was compressed
correlationMessageIdcorrelationMessageId No StringString AS2 消息 ID,用于将消息与 MDN 相关联AS2 message ID, to correlate messages with MDNs
incomingHeadersincomingHeaders No JToken 字典Dictionary of JToken 传入 AS2 消息标头的详细信息Incoming AS2 message header details
outgoingHeadersoutgoingHeaders No JToken 字典Dictionary of JToken 传出 AS2 消息标头的详细信息Outgoing AS2 message header details
isNrrEnabledisNrrEnabled Yes BooleanBoolean 如果值未知,是否使用默认值Whether to use default value if the value isn't known
isMdnExpectedisMdnExpected Yes BooleanBoolean 如果值未知,是否使用默认值Whether to use the default value if the value isn't known
mdnTypemdnType Yes 枚举Enum 允许的值:NotConfiguredSyncAsyncAllowed values: NotConfigured, Sync, and Async

AS2 MDN 跟踪架构AS2 MDN tracking schema

{
   "agreementProperties": {
      "senderPartnerName": "",
      "receiverPartnerName": "",
      "as2To": "",
      "as2From": "",
      "agreementName": ""
   },
   "messageProperties": {
      "direction": "",
      "messageId": "",
      "originalMessageId": "",
      "dispositionType": "",
      "isMessageFailed": "",
      "isMessageSigned": "",
      "isNrrEnabled": "",
      "statusCode": "",
      "micVerificationStatus": "",
      "correlationMessageId": "",
      "incomingHeaders": {
      },
      "outgoingHeaders": {
      }
   }
}
propertiesProperty 必选Required 类型Type 说明Description
senderPartnerNamesenderPartnerName No StringString AS2 消息发送者的合作伙伴名称AS2 message sender's partner name
receiverPartnerNamereceiverPartnerName No StringString AS2 消息接收者的合作伙伴名称AS2 message receiver's partner name
as2Toas2To Yes StringString 接收 AS2 消息的合作伙伴名称Partner name who receives the AS2 message
as2Fromas2From Yes StringString 发送 AS2 消息的合作伙伴名称Partner name who sends the AS2 message
agreementNameagreementName No StringString 解析消息的 AS2 协议名称Name of the AS2 agreement to which the messages are resolved
directiondirection Yes StringString 消息流的方向,receivesendDirection of the message flow, which is either receive or send
messageIdmessageId No StringString AS2 消息 IDAS2 message ID
originalMessageIdoriginalMessageId No StringString AS2 原始消息 IDAS2 original message ID
dispositionTypedispositionType No StringString MDN 处置类型值MDN disposition type value
isMessageFailedisMessageFailed Yes BooleanBoolean AS2 消息是否已失败Whether the AS2 message failed
isMessageSignedisMessageSigned Yes BooleanBoolean AS2 消息是否已签名Whether the AS2 message was signed
isNrrEnabledisNrrEnabled Yes BooleanBoolean 如果值未知,是否使用默认值Whether to use the default value if the value isn't known
statusCodestatusCode Yes 枚举Enum 允许的值:AcceptedRejectedAcceptedWithErrorsAllowed values: Accepted, Rejected, and AcceptedWithErrors
micVerificationStatusmicVerificationStatus Yes 枚举Enum 允许的值:NotApplicableSucceededFailedAllowed values:NotApplicable, Succeeded, and Failed
correlationMessageIdcorrelationMessageId No StringString 相关 ID,它是配置了 MDN 的原始消息的 IDCorrelation ID, which is the ID for the original message that has the MDN configured
incomingHeadersincomingHeaders No JToken 字典Dictionary of JToken 传入消息标头的详细信息Incoming message header details
outgoingHeadersoutgoingHeaders No JToken 字典Dictionary of JToken 传出消息标头的详细信息Outgoing message header details

B2B 协议跟踪架构B2B protocol tracking schemas

有关 B2B 协议跟踪架构的信息,请参阅:For information about B2B protocol tracking schemas, see: