Hello Everyone,
I am trying to read incoming XMLbody and replacing the special characters with blank.
Can anyone please help me out to read incoming XML data
Thanks,
Lakshmi Motupalli.
Take a look at the Assign Message policy and the documented message templates
You should be able to use the documented replaceAll string function with a regex to match your needs to replace the characters
For example, to replace any non alphanumeric
<AssignMessage name="Assign-Message-1"> <Set> <Payload>{replaceAll(request.content, '[^a-zA-Z0-9 ]', ' ')}</Payload> </Set> <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables> </AssignMessage>
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |