Important

   

Starting version 8.9.03, BMC Network Automation is renamed to TrueSight Network Automation. This space contains information about BMC Network Automation 8.9.02 and previous versions. For TrueSight Network Automation 8.9.03 and later releases, see the TrueSight Network Automation documentation.

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.

Was this page helpful? Yes No Submitting... Thank you

Comments