I have a xslt that i have stored in local-entry. I have response xml saved in a property. How can i use xslt mediator that should take the xslt from local-entry and xslt mediator should take xml from property and the result of transformation should get stored in a property. How to achieve this?
I have achieved the transformation using xslt mediator and i am able to show that data using send mediator but i am wondering, How can i store the transformed data in property? Badly need a solution in this regard. please help. Looking forward to your answers? Thanks in advance
My sequence is:
<sequence>
<property xmlns:ns="http://org.apache.synapse/xsd" name="propertyResponse" expression="$body"/>
<xslt key="TransformResponseXML"/>
<send/>
</sequence>
My $body is:
<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<reg_Collection xmlns="http://tempuri.org">
<Inputs>
<ID>Book_112</ID>
<Description>Name for Registeration of new Books</Description>
</Inputs>
</reg_Collection>
</soapenv:Body>
My final output response is:
<InputResponse xmlns="http://tempuri.org">
<ID>Book_112</ID>
<Description>Name for Registeration of new Books</Description>
</InputResponse >
Now i am able to show the transformed xml as output. i just want to store this response in Property mediator.