问题
We're working on using BizTalk generate a valid SWIFT message (initially MT 103) and dropping it onto an endpoint. However, we're struggling to generate a valid message.
As part of this, we think we need to clear up our thinking surrounding the SWIFT FIN MT 103 Trailer block fields, CHK
and MAC
.
Firstly, is this BizTalk/A4SWIFT's responsibility, or should we generate these fields?
Microsoft's documentation says:
The actual FIN interface or the SWIFT network appends the trailers. If a message contains a trailer when A4SWIFT receives the message, A4SWIFT carries the trailer with the message. A4SWIFT does not raise an error if a message does not contain a trailer when A4SWIFT receives the message. As with headers, all of the trailer entries, including the blocks themselves, are optional in A4SWIFT.
SWIFT Header and Trailer Schemas
... but this seems to be talking about inward SWIFTs with the {5:}
trailer and CHK
and MAC
fields.
Secondly, if it is our concern, how do we generate the CHK and MAC?
Even when we figure that out, there seems to be a location in the A4SWIFT MT 103 schema for the CHK ...
... but not for the MAC which seems to be some form of authentication token.
来源:https://stackoverflow.com/questions/44524346/a4swift-on-biztalk-generating-a-valid-mt103-how-to-create-the-chk-and-mac-fiel