You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by prana vangee <pv...@amig.com> on 2012/01/17 15:27:16 UTC

Unable to use partial unmarshalling with camel

I am trying to use partial unmarshalling feature of jaxb with camel, I don't
see any errors but the part class has all null values. 

This is what I have:

 <route id="sendMessage" streamCache="true">		
			<from uri="file:data/input?noop=true,delay=500" />			
			<unmarshal>
				<jaxb id="jaxb" partClass="generated.latest.ProductAuthorizationType"
				prettyPrint="true" contextPath="generated.latest" />
			
			</unmarshal>			 	
			</route> 

I see that after starting this route ProductAuthorizationType object has all
null values.

This is how my xml file looks:

<?xml version="1.0" encoding="UTF-8"?>
<prism-master-tlo xmlns="http://apache-camel/poc/prism">
	<prism-transaction-type>PRISM-CH-ADD
	</prism-transaction-type>
	<ch-asgn-id>DG0065</ch-asgn-id>
	<first-name>SMOKEREG</first-name>
	<middle-name>Allen</middle-name>
	
	<product-authorization>
		<transaction-code>AP</transaction-code>
		<company-number>070</company-number>
		<state-code>IN</state-code>
		<effective-date>10/04/2008</effective-date>
		<two-for-one-ind>N</two-for-one-ind>
		<product-code>001</product-code>
		<section-code>100</section-code>
		<marketing-channel>G</marketing-channel>
		<ic-agent-type>G</ic-agent-type>
		<createTimestamp>2008-08-11 09:00:56.695975
		</createTimestamp>
	</product-authorization>
	<product-authorization>
		<transaction-code>AP</transaction-code>
		<company-number>070</company-number>
		<state-code>OK</state-code>
		<effective-date>10/04/2008</effective-date>
		<two-for-one-ind>N</two-for-one-ind>
		<product-code>001</product-code>
		<section-code>100</section-code>
		<marketing-channel>G</marketing-channel>
		<ic-agent-type>G</ic-agent-type>
		<createTimestamp>2008-08-11 09:00:56.695975
		</createTimestamp>
	</product-authorization>
</prism-master-tlo>

--
View this message in context: http://camel.465427.n5.nabble.com/Unable-to-use-partial-unmarshalling-with-camel-tp5151716p5151716.html
Sent from the Camel - Users mailing list archive at Nabble.com.