SWIFT Module 7.1 SP10.July 2020 | Package Services | WmFIN Package Services | wm.unifi.validation Folder | wm.unifi.validation:validateCurrencyCode
 
wm.unifi.validation:validateCurrencyCode
This service verifies that the currency code exists in the SWIFT database.
Note:
By default the service returns true when the input xmlNode does not contain a node element with QName as the specified TypeName. In this case you receive the following optional warning message: “No node with the specified TypeName could be found for the entered xmlNode.”
Input Parameters
xmlNode
Object An XML element object instance of an MX message type.
TypeName
String The tag name that identifies the element containing the currency code. The service extracts the value of the element using the type name to identify it and validate the data value.
AttrName
String The attribute name that contains the value for the currency code.
ErrorCode
String The default value for the error code is Sw.Stds.D0005. You can replace it with a custom error code.
Output Parameters
isValid
String The result of the MX string validation. A value of true signifies the string is valid. A value of false signifies the string is not valid.
errors
Document List Conditional. Errors that occur when the MX message does not pass validation.
error/pathName
String The complete xpath of the element for which validation failed.
error/errorCode
String The error code for the corresponding element.
error/errorMessage
String The detailed message for the error that occurred.
error/errorData
String The field content for which validation failed.