I am using wso2 esb 4.8.1. I am trying to do xml to xml transformation with the help of smooks mediator but I am getting following exception when is hit request from the try it
I didn't go through your example thoroughly, but it seems the error is that the Smooks Mediator cannot find the registry resource.
Looks like there is an issue when you specify the smooks config-key attribute. When you are working with the registry, you need to know that there are different registry spaces.
If you refer a resource via "gov:", the resource will be in "/_system/governance". You need to use "conf:" to refer a resource in "/_system/config".
For eg: If you have a resource in "/_system/config/transforms/smooksconfig.xml", you need to refer it as follows:
"conf:transforms/smooksconfig.xml"
Related question: Howto access registry in WSO2 ESB
I hope this helps.