[ https://issues.apache.org/jira/browse/SYNAPSE-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vanjikumaran Sivajothy updated SYNAPSE-1077: -------------------------------------------- Description: I am using simple proxy to convert application/xml to application/json with latest build [1], {code} <proxy name="echoService" xmlns="http://ws.apache.org/ns/synapse"> <target> <inSequence> <property name="messageType" value="application/json" scope="axis2" /> <log level="full" /> <respond /> </inSequence> <outSequence> <send /> </outSequence> </target> <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl" /> </proxy> {code} the input payload is {code} <a> <b>c</b> </a> {code} and expected output is {code} { "a": { "b": "c" } } {code} However the out come was {code} {"a":{"$":"\n\n","b":"c"}} {code} ============================= I have tested the very simple xml {code} <a>b</a>{code} and the outcome was as expected. {code} {"a":"b"} {code} [1] https://builds.apache.org/job/Synapse%20-%20Trunk/5306/ was: I am using simple proxy to convert application/xml to application/json with latest build [1], {code} <proxy name="echoService" xmlns="http://ws.apache.org/ns/synapse"> <target> <inSequence> <property name="messageType" value="application/json" scope="axis2" /> <log level="full" /> <respond /> </inSequence> <outSequence> <send /> </outSequence> </target> <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl" /> </proxy> {code} the input payload is {coe} <a> <b>c</b> </a> {code} and expected output is {code} { "a": { "b": "c" } } {code} However the out come was {code} {"a":{"$":"\n\n","b":"c"}} {code} [1] https://builds.apache.org/job/Synapse%20-%20Trunk/5306/ > application/xml to application/json is not properly converting > --------------------------------------------------------------- > > Key: SYNAPSE-1077 > URL: https://issues.apache.org/jira/browse/SYNAPSE-1077 > Project: Synapse > Issue Type: Bug > Reporter: Vanjikumaran Sivajothy > Assignee: Isuru Udana Loku Narangoda > Attachments: Screen Shot 2016-12-27 at 11.14.14 PM.png > > > I am using simple proxy to convert application/xml to application/json with > latest build [1], > {code} > <proxy name="echoService" xmlns="http://ws.apache.org/ns/synapse"> > <target> > <inSequence> > <property name="messageType" value="application/json" > scope="axis2" /> > <log level="full" /> > <respond /> > </inSequence> > <outSequence> > <send /> > </outSequence> > </target> > <publishWSDL > uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl" /> > </proxy> > {code} > the input payload is > {code} > <a> > <b>c</b> > </a> > {code} > and expected output is > {code} > { > "a": { "b": "c" } > } > {code} > However the out come was > {code} > {"a":{"$":"\n\n","b":"c"}} > {code} > ============================= > I have tested the very simple xml > {code} <a>b</a>{code} > and the outcome was as expected. > {code} > {"a":"b"} > {code} > [1] https://builds.apache.org/job/Synapse%20-%20Trunk/5306/ -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org For additional commands, e-mail: dev-h...@synapse.apache.org