Product/components used and version/fix level are you on:
webMethods IS 10.5
Detailed explanation of the problem:
I have created a flow service that returns a document. To create a REST service I have added a REST Resource and a REST API Descriptor. Within the Descriptor I have added that it can return application/json and application/xml.
So far you can set the Accept header to json or xml. The problem is that some fields of my document, that is returned by the flow service behind the REST API, can contain a “&” sign. The API Descriptor does return XML if the Accept header is set to application/xml but then a field will contain the “&”, e.g. test & test and this is not a valid XML document. The “&” should be returned in an encoded way.
Can anyone help me how to achieve that I get valid XML? Only solution so far would be to return an XML string instead of the document but this would break the JSON possibility.