Reputation: 117
In wso2 esb,proxy service, I am trying to get a string with xpath substring-before who extract 1 line stop by an Carriage Return (cr). here is my property.
<property name="str_id" expression="fn:substring-before(get-property('INPUT_MESSAGE'),' ')"/>
When I save my proxy configuration from the web administration console, the carriage return character is replace by a white space. When I use an other editor like notepad, I have no problem, the carriage return is not replace. But the problem, if I restart the wso2 esb server, it replace it by an white space again.
Any idea of the problem ? Is that an bug?
Best regards, Nicolas
Upvotes: 2
Views: 4552
Reputation: 5946
Carriage return will systematically be removed from your mediation's xml definition.
One solution could be to import a text resource containing carriage return in ESB gov registry and use this resource in your xpath expression :
<property name="str_id" expression="fn:substring-before(get-property('INPUT_MESSAGE'),syn:get-property('gov:trunk/CR.txt'))"/>
Upvotes: 1