Re: JAXB partial unmarshalling

2013-10-18 Thread contactreji
Hi try implementing Serializable class like public class MobilePhone extends Serializable { @XmlElement private String QueryResult; @XmlElement private String AreaCode; } -- View this message in context: http://camel.465427.n5.nabble.com/JAXB-partial

Re: JAXB partial unmarshalling

2013-09-17 Thread hutao722
-files-with-apache_24.html Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/JAXB-partial-unmarshalling-tp5739497p5739576.html Sent from the Camel - Users mailing list archive at Nabble.com.

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

Re: JAXB partial unmarshalling

2013-09-16 Thread Willem jiang
(http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Monday, September 16, 2013 at 12:40 PM, hutao722 wrote: 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

Re: JAXB partial unmarshalling

2013-09-16 Thread hutao722
better ways? Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/JAXB-partial-unmarshalling-tp5739497p5739509.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JAXB partial unmarshalling

2013-09-16 Thread Marco Westermann
Hi, in addition to what you do I alway set the fragement property to true. Try the follwing: jaxb.setFragment(true) regards, Marco Am 16.09.2013 06:40, schrieb hutao722: Hi, I tried to do JAXB partial unmarshalling test, but always get null values from xml to java object. The code like

Re: JAXB partial unmarshalling

2013-09-16 Thread Marco Westermann
) regards, Marco Am 16.09.2013 06:40, schrieb 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

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
? Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/JAXB-partial-unmarshalling-tp5739497p5739547.html Sent from the Camel - Users mailing list archive at Nabble.com.