I have a requirement to pass incoming XML payload as JSON to the signature part of the URL of Rest adapter. Signature is calculated on key, URL and JSON. This has to be done in mapping itself. I think UDF can solve my issue. Can some one guide me in writing UDF for this?