You can try two options:
Write a custom java service to modify ‘&’ to ‘&’
For the service pub.xml:documentToXMLString, you’ll need to set the service input parameter ‘encode’ to true for the functionality desired.
See documentation "9-X_Integration_Server_Built-In_Services", for information about the input parameter ‘encode’ which states the following:
"String Optional. Flag indicating whether to HTML-encode the data. Set this parameter to true if your XML data contains special characters, including the following:
< > & " ’
Set to:
true - to HTML-encode the data.
For example, the string expression 5 < 6 would be converted to 5 < 6, which is valid.
false - to not HTML-encode the data. This is the default.
For example, the string expression 5 < 6 would be converted to 5 < 6, which is invalid."
Site set the input parameter ‘encode’, for service pub.xml:documentToXMLString, to ‘true’ and problem resolved.
The ‘&’ is now converted correctly to "&.
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services