SWIFT Module 7.1 SP10.July 2020 | Package Services | WmFIN Package Services | wm.sdk.fin Folder | wm.sdk.fin.converter:convertMTXMLblock4ToMTFlatFile
 
wm.sdk.fin.converter:convertMTXMLblock4ToMTFlatFile
This service converts block 4 of the MT XML message into flat file format.
Input Parameters
sdkversion
String Required. The version of SWIFT SDK. This service uses the SDK version to determine which XSD to apply during file conversion. Valid values are any SDK version that SWIFT Module supports (for example, version 2009 or 2010).
msgType
String Required. The message type corresponding to the MT XML message passed in the finXML parameter (for example, 199).
finXML
String Required. The MT XML message. This service converts the XML message into flat file format.
Output Parameters
finMsg
String The flat file generated from block 4 of the MT XML message.
errDoc
Document Reference Errors encountered during processing are reported using the “wm.sdk.rec.mtxsd:ErrorReport” document type format. The following tags are provided in the XML error document:
XML Tag
Description
errDoc/ConversionErrors
Document The opening XML tag for the errors generated during conversion.
errDoc/ConversionErrors/Error
Document List List of conversion errors generated during processing.
errDoc/ConversionErrors/Error[x]/Code
String Code corresponding to the error in SWIFT format (for example, TC00103). For more information see SDK Error Descriptions.
errDoc/ConversionErrors/Error[x]/Message
String Message corresponding to the error code in SWIFT format (for example, “The message content is invalid Details: MT2XML.002.004”).
errDoc/ConversionErrors/Error[x]/Location
Document Location within the finMsgwhere the conversion failed.
errDoc/ConversionErrors/Error[0]/Location/LineNumber
String Line number within the finMsg where the conversion failed.