Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use xslt mediator in wso2 ESB?
    primarykey
    data
    text
    <p>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?</p> <p>I have achieved the transformation using xslt mediator and i am able to show that data using send mediator but i am wondering, <strong>How can i store the transformed data in property</strong>? Badly need a solution in this regard. please help. Looking forward to your answers? Thanks in advance</p> <p>My sequence is:</p> <pre><code> &lt;sequence&gt; &lt;property xmlns:ns="http://org.apache.synapse/xsd" name="propertyResponse" expression="$body"/&gt; &lt;xslt key="TransformResponseXML"/&gt; &lt;send/&gt; &lt;/sequence&gt; </code></pre> <p>My $body is:</p> <pre><code>&lt;soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;reg_Collection xmlns="http://tempuri.org"&gt; &lt;Inputs&gt; &lt;ID&gt;Book_112&lt;/ID&gt; &lt;Description&gt;Name for Registeration of new Books&lt;/Description&gt; &lt;/Inputs&gt; &lt;/reg_Collection&gt; &lt;/soapenv:Body&gt; </code></pre> <p>My final output response is:</p> <pre><code>&lt;InputResponse xmlns="http://tempuri.org"&gt; &lt;ID&gt;Book_112&lt;/ID&gt; &lt;Description&gt;Name for Registeration of new Books&lt;/Description&gt; &lt;/InputResponse &gt; </code></pre> <p><strong>Now i am able to show the transformed xml as output. i just want to store this response in Property mediator.</strong></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload