Hi,
I am creating a custom data protocol. My transient response is an xml that has some expressions in it like this: {{=expression}}. In my custom data protocol, I am converting that xml into a message. When I try to update the transient response I get an error because the expressions are not evaluated at the time of the response update as my program doesn't recognize {{=expression}}.
How can I overcome this problem?
Regards,
Saman
I think you want to use testExec.parseInState() to force all expressions to be evaluated.
Thanks much it worked!
Hi Saman,
Try this:
String newBody = testExec.parseInState(oldBody);
--Mike
Thanks much. I tried below code:
public void updateResponse(TestExec testExec, TransientResponse transientResponse){
String xmlString = testExec.parseInState(transientResponse.getBodyAsString());
......
}
and it worked.