You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "anish.somadevan" <ne...@gmail.com> on 2015/08/27 20:48:12 UTC
JSON to XML Conversion
Am trying to convert a JSON message to XML format as given below,
<dataFormats>
<xmljson id="xmljson"/>
<xmljson id="xmljsonWithOptions" forceTopLevelObject="true"
trimSpaces="true" rootName="newRoot" skipNamespaces="true"
removeNamespacePrefixes="true"/>
<route id="parseJSON">
<from uri="direct:inter2" />
<unmarshal ref="xmljsonWithOptions"/>
<to uri="direct:inter3" />
Am using. Camel-XmlJSON 2.10.3 JAR.
When i execute my route, i get the following error,
JmsConsumer[ISEEOutboundQueue]) CamelOutboundAdapter exception: Failed to
create route parseJSON at: >>> Unmarshal[ref:xmljsonWithOptions] <<< in
route: Route[[From[direct:inter2]] -> [Unmarshal[ref:xmljsonWithOpt...
because of Cannot find data format in registry with ref: xmljsonWithOptions
Can anyone please let me know how to resolve this?
Thanks,
Anish
--
View this message in context: http://camel.465427.n5.nabble.com/JSON-to-XML-Conversion-tp5771031.html
Sent from the Camel - Users mailing list archive at Nabble.com.