Handling special characters
Due to lack of support for certain special characters in XML, BMC Network Automation encodes them before passing the strings to the webservice client. Encoding replaces a special character with an escaped hexadecimal string (for example, \x00). This encoding is done by using the StringUtils.translateUnprintables() method.
When the client receives the data, a call must be made to SharedStringUtils.convertToCharacter() to translate the encoded strings back to their original characters.
When the client sends data containing special characters to the server, a call must be made to the StringUtils.translateUnprintables() method to encode the special characters before a call is made to the web service API.
Note
While parsing the web services response, use wildcards in the script because namespaces might change from release-to-release.
Comments
Log in or register to comment.