Am not sure if i have implemented it as you said. This is what i have in my
route now,

<routes xmlns="http://camel.apache.org/schema/spring";>
<unmarshal>
    <xmljson id="xmljson"/>
    <xmljson id="xmljsonWithOptions" forceTopLevelObject="true"
trimSpaces="true" rootName="newRoot" skipNamespaces="true"
removeNamespacePrefixes="true" expandableProperties="d e"/>
</unmarshal>

<to uri="direct:inter2" />
    </route>

        <route id="parseJSON">
        <from uri="direct:inter2" />

        <unmarshal ref="xmljsonWithOptions"/>
        <to uri="direct:inter3" />
    </route>


I still get the same error

 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


But when i have just "xmljson" in the route, everything works fine,

<to uri="direct:inter2" />
    </route>

        <route id="parseJSON">
        <from uri="direct:inter2" />

        <unmarshal ref="xmljson"/>
        <to uri="direct:inter3" />
    </route>

Can you let me know your thoughts on this. Am facing issue wherever am
trying to refer something from registry. 

Thanks,
Anish



--
View this message in context: 
http://camel.465427.n5.nabble.com/JSON-to-XML-Conversion-tp5771032p5771139.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to