One of the flow services is having the below steps:
pub:xml:documentToXmlString → Set encode = true
pub:flow:setResponse → content_type “text.xml”
Returns the string that is prepared in step 2.
From the client perspective, this works if HTTPClient is used.
But some of our services are using java API to call this flowservice. when this flow service is called from Java, I am receiving Null.
If I change encode = false and not set content_type, then from java I am able to receive. But I can’t change the code since some consumers are using
HTTPClient. So what is the best approach to this scenario. I don’t want to duplicate the code and change these params just for another client.