You should be able to do a Smooks transformation XML->JSON.
Thanks you very much Tom for your answer.
But i hava some question more if i have a lot of JSON format i have to create a lot of Smooks JSON teamplate too ?
Can it do something in JavaCode to cover all Json to XML in one function ?
There's a lot of approaches I guess you could look into here :
- Smooks transformation JSON->XML or XML->JSON, not sure which way you are going
- custom action using Jackson
- Camel Gateway using the JSON component
I'd look at the camel_helloworld (substituting in the camel_json component) and maybe transform_XML2XML_simple for a Smooks approach.
I'm used custom action for REST proxy to pass through everything http reqest to rest webservice
I have GET,PUT,POST,DELETE and also XML/JSON input
Tom Please help me i think my point just want to pass through data from http reqest to the rest-webservice