It looks like you are using
org.apache.camel.model.dataformat.JaxbDataFormat and not
org.apache.camel.converter.jaxb.JaxbDataFormat.

I added a test which shows that marshalling partial classes works in
generall:
https://svn.apache.org/repos/asf/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/converter/jaxb/JaxbDataFormatPartClassTest.java

Best,
Christian

On Fri, May 4, 2012 at 5:11 PM, gehdan <g...@bizolution.de> wrote:

> gah.. damn HTML mails... sorry for that, I'm trying again:
>
> my route looks like this:
> VeytonProxy proxy = new VeytonProxy(
> new URL("http://shop.example.com/index.php?page=soap_api_wsdl";));
>
>
> JaxbDataFormat d = new JaxbDataFormat(); d.setDataFormatName("jaxb");
> d.setContextPath("com.xt_commerce.types");
> d.setPartClass("com.xt_commerce.types.Order");
> d.setPartNamespace("{http://www.xt-commerce.com/types}order";);
> d.setPrettyPrint(true);
> from("timer://fetchOrderTimer?period=5000")
> .setBody(simple("1"))
>       .bean(proxy, "getOrderIds")
>       .split(body(String[].class))
>       .log("fetching order '${body}' from shop.")
>       .bean(proxy, "getOrder")
>       .setHeader("identifier",
> simple("order-${body.orderId}-${body.customerId}"))
>       .log("order '${body.orderId}' successfully loaded, customer:
> ${body.customerId}")
>       .marshal(d)
>       .to("file://c:/temp?fileName=${header[identifier]}.txt");
>
> Using camel-jaxb instead of jaxb-* as dependency in both projects doesn't
> help - as expected. Since I already used the versions of jaxb-* that were
> defined as dependency of camel-jaxb.
>
> This seems to be a problem of version 2.1.13 of jaxb-impl.
>
> Thanks,
> Daniel
>
> -----
> --
> Daniel Geh
> BIZOLUTION GmbH
> Web: http://www.bizolution.de
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/JAXB-classpath-issue-with-camel-jaxb-2-9-2-tp5678527p5686166.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to