Re: How to return null element with Camel-CXF

2014-02-16 Thread Chubutin
Hi, thanks for your reply. IMHO I thinks It could be a valid response because if you return a wrapper with an instance of your responde with values elements inside you should check in the client the inners elements for avoid an NPE. If you response a null element inside the wrapper, when you deser

Re: How to return null element with Camel-CXF

2014-02-13 Thread Aki Yoshida
I'm not sure if it is valid to return a null for that POJO request-response web service that you have. If you had a generic provider based request-response interface (javax.xml.ws.Provider), you can return a null to dynamically simulate oneway invocations. But I'm not sure about the POJO case... 2

Re: How to return null element with Camel-CXF

2014-02-12 Thread Chubutin
My new route with the fix is .choice() .when().simple("${in.body} contains 'vessel'") .unmarshal(getJaxbDataFormat()) .otherwise() .process(new Processor() {