RE: Camel XmlJson Question

2015-08-12 Thread srinit
Hi, Yes. I want to apply namespaces on some element inside soap body. I have {"arg0":"srinivas"} as input and want to get output like below http://service.ws.test.x.com/";> Srinivas I did something like this XmlJsonDataFormat xmlJsonFormat = new Xml

Re: Camel XmlJson Question

2015-08-12 Thread srinit
Hi, Yes. I want to apply namespaces on some element inside soap body. I have {"arg0":"srinivas"} as input and want to get output like below http://service.ws.test.x.com/";> Srinivas I did something like this XmlJsonDataFormat xmlJsonFormat = new

RE: Camel XmlJson Question

2015-07-31 Thread srinit
Hi Raul, I went through that page and unable get how I can use that for my case. I don't see any good example for xmljson under Examples section. - Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Camel-XmlJson-Question-tp5770021p5770150.html Sent from the Camel - Us

RE: Camel XmlJson Question

2015-07-31 Thread srinit
I am trying to xml <==> json using following code @Override public void xml2json(String xml) throws JSONException { JSONObject xmlJSONObj = XML.toJSONObject(xml); String jsonPrettyPrintString = xmlJSONObj .toString(PRETTY_PRIN

Camel XmlJson Question

2015-07-28 Thread srinit
Hi Folks, I am very new to Camel library and getting confused whether I am in right place for my requirement or not? Here is my requirement, I need conversion from xml to json and viceversa in java project. Basically I need to convert a Xml SOAP message to Json and from json to SOAP Xml message w