Hello,

I'am using Spring configuration to configure the camel. Below is a example
of the things you described may be it's usefull

<beans xmlns="http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:camel="http://camel.apache.org/schema/spring";
xsi:schemaLocation="http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
         http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd ">


        <bean id="xml2json"
class="org.apache.camel.dataformat.xmljson.XmlJsonDataFormat">
                <property name="typeHints" value="YES"/>
                <property name="expandableProperties" value="objects"/>
                <property name="forceTopLevelObject" value="true"/>
                <property name="trimSpaces" value="true"/>
                <property name="rootName" value="request"/>
                <property name="skipNamespaces" value="true"/>
                <property name="removeNamespacePrefixes" value="true"/>
        </bean>

<camel:camelContext id="biStandardCamelContext" trace="true"
xmlns="http://camel.apache.org/schema/spring";>

            <camel:route>
                <camel:from uri="direct:RetrieveJSONAndSendToFTP"/>
                        
                <camel:to uri="http://www.mypage.com/stuff/my-stuff"/>
                
                        
                <camel:unmarshal ref="xml2json"/>
                
                
                <camel:to uri="xslt:file:///some.xslt" />
                
                
                <camel:to
uri="ftp:www.myftpServer.com/suppage?username=admin&password=secret"/>
            </camel:route>

</camel:camelContext>       
</beans>






--
View this message in context: 
http://camel.465427.n5.nabble.com/beginner-download-json-transform-to-xml-send-to-ftp-tp5764007p5764078.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to