Re: HL7 v3

2013-10-29 Thread hutao722
Maybe IPF which is based on camel can answer your question. http://repo.openehealth.org/sites/ipf/manuals/ipf-2.5-rc2/IPF%20reference%20-%20multi.html -- View this message in context: http://camel.465427.n5.nabble.com/HL7-v3-tp5732915p5742346.html Sent from the Camel - Users mailing list arch

Re: splitting xml failed when running on tomcat

2013-10-06 Thread hutao722
Thank you Willem. Solved per your suggestion! -- View this message in context: http://camel.465427.n5.nabble.com/splitting-xml-failed-when-running-on-tomcat-tp5740407p5740952.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: splitting xml failed when running on tomcat

2013-09-29 Thread hutao722
i added some logs and observed that the stax works. And in the last processor, i can get the split result from content. But the restlet cannot set the split result to the entity, the entity returned to client is still the entire xml from web service. Any ideas? -- View this message in contex

splitting xml failed when running on tomcat

2013-09-29 Thread hutao722
Hi, i wish to split the big xml to the small one. So I tried to use tokenizeXML or Stax method to implement it. The two ways both work when i did the unit test. But when i deployed the war to Tomcat. I found they both failed to split the xml. It seems when split failed, the following process handl

Re: JAXB partial unmarshalling

2013-09-16 Thread hutao722
Thank you all. I tried many times, but the partial unmarshalling still failed for me. Instead, the Claus's two blogs bring me another two solutions. They both work for me. http://www.davsclaus.com/2011/11/splitting-big-xml-files-with-apache.html http://www.davsclaus.com/2011/11/splitting-big-xml-f

Re: JAXB partial unmarshalling

2013-09-16 Thread hutao722
I think the ns is no problem although it is indeed an invalid ns. It is because If i use the MobilePhone as the root element, the unmarshal operation is OK. But it failed when I try to do partial unmarshal. Do you have some correct examples I can follow or some useful info about this topic? Than

Re: JAXB partial unmarshalling

2013-09-16 Thread hutao722
Thanks, Macro. I tried, but it still doesn't work. -- View this message in context: http://camel.465427.n5.nabble.com/JAXB-partial-unmarshalling-tp5739497p5739524.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JAXB partial unmarshalling

2013-09-16 Thread hutao722
Thank you for your explain, Willem. But i read from the link http://camel.apache.org/jaxb.html it says: JAXB 2 supports marshalling and unmarshalling XML tree fragments. By default JAXB looks for @XmlRootElement annotation on given class to operate on whole XML tree. This is useful but not always

JAXB partial unmarshalling

2013-09-16 Thread hutao722
Hi, I tried to do JAXB partial unmarshalling test, but always get null values from xml to java object. The code like this: JaxbDataFormat jaxb = new JaxbDataFormat(false); jaxb.setContextPath("org.apache.camel.example.server.model6"); jaxb.setPartClass("org.apache.camel.example.server.model6.Mob