SWIFT Module 7.1 SP10.July 2020 | Package Services | WmFIN Package Services | wm.unifi.validation Folder | wm.unifi.validation:validateCountryCode
 
wm.unifi.validation:validateCountryCode
This service verifies that the country 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 identifying the element that contains the country code. The service extracts and validates this value, using the type name to identify it.
ErrorCode
String The default value for the error code is Sw.Stds.D0004. 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.