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
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
My new route with the fix is
.choice()
.when().simple("${in.body} contains 'vessel'")
.unmarshal(getJaxbDataFormat())
.otherwise()
.process(new Processor() {