Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to retrive the value in Wso2esb using Xpath
    text
    copied!<p>I am using wso2esb4.7.0 i have written jms proxy so i wish send my data to endpoint but i am unable process this my proxy is </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;proxy xmlns="http://ws.apache.org/ns/synapse" name="MediaMoveQueue" transports="jms" startOnLoad="true" trace="disable"&gt; &lt;description/&gt; &lt;target&gt; &lt;inSequence&gt; &lt;property name="readingspayload" expression="$body"/&gt; &lt;payloadFactory media-type="xml"&gt; &lt;format&gt; &lt;p:hello xmlns:p="http://jaxws.youtility.in/"&gt; &lt;arg0 xmlns=""&gt;$1&lt;/arg0&gt; &lt;/p:hello&gt; &lt;/format&gt; &lt;args&gt; &lt;arg evaluator="xml" expression="get-property('readingspayload')"/&gt; &lt;/args&gt; &lt;/payloadFactory&gt; &lt;!--header name="Action" value="hello"/--&gt; &lt;log level="full"/&gt; &lt;send&gt; &lt;endpoint&gt; &lt;address uri="http://192.168.1.2:8282/services/media_move_service_i_f" format="soap11"/&gt; &lt;/endpoint&gt; &lt;/send&gt; &lt;/inSequence&gt; &lt;outSequence&gt; &lt;log level="full"/&gt; &lt;send/&gt; &lt;/outSequence&gt; &lt;/target&gt; &lt;/proxy&gt; </code></pre> <p>in this proxy i am getting the data like this if i log this esb my log is look like this</p> <blockquote> <p><br> {"timestamp":1383715637698,"tmpfilename":"313d79a7-c29b-4e1a-9609-818610a6a66b.pdf","objecttype":"Punch","filename":"enterprisedb_order.pdf","totalfilesize":994086,"uuid":"313d79a7-c29b-4e1a-9609-818610a6a66b","objectid":"313d79a7-c29b-4e1a-9609-818610a6a66b","fullpath":"/tmp/tmpmedia//313d79a7-c29b-4e1a-9609-818610a6a66b.pdf","deviceId":"911202500210109","filemimetype":"PNG"} </p> </blockquote> <p>but i need to just send that json format of data to my endpoint for that i have tried this xpath but its showing errors of name space how would i get this</p> <pre><code>$axis2ns58:text </code></pre> <p>but its throwing errors i wish to send that data to my endpoint i have tried this but i need above format of data only</p> <pre><code>//soapenv:Body </code></pre> <p>its giving like this result</p> <pre><code> &lt;soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;axis2ns58:text xmlns:axis2ns58="http://ws.apache.org/commons/ns/payload"&gt;{"timestamp":1383715637698,"tmpfilename":"313d79a7-c29b-4e1a-9609-818610a6a66b.pdf","objecttype":"Punch","filename":"enterprisedb_order.pdf","totalfilesize":994086,"uuid":"313d79a7-c29b-4e1a-9609-818610a6a66b","objectid":"313d79a7-c29b-4e1a-9609-818610a6a66b","fullpath":"/tmp/tmpmedia//313d79a7-c29b-4e1a-9609-818610a6a66b.pdf","deviceId":"911202500210109","filemimetype":"PNG"}&lt;/axis2ns58:text&gt; &lt;/soapenv:Body&gt; </code></pre> <p>but i wish to send below data to my endpoint even payload also not supporting for this</p> <pre><code>{"timestamp":1383715637698,"tmpfilename":"313d79a7-c29b-4e1a-9609-818610a6a66b.pdf","objecttype":"Punch","filename":"enterprisedb_order.pdf","totalfilesize":994086,"uuid":"313d79a7-c29b-4e1a-9609-818610a6a66b","objectid":"313d79a7-c29b-4e1a-9609-818610a6a66b","fullpath":"/tmp/tmpmedia//313d79a7-c29b-4e1a-9609-818610a6a66b.pdf","deviceId":"911202500210109","filemimetype":"PNG"} </code></pre>
 

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