Yes, that is exactly what I do in the end processor.
Build a W3C XML document object from an XML file.
Create a new CxfPayload object, with the element list containing the root
element of this document object.
exchange.getOut().setBody(the CxfPayload object).
I found the following log about operation info, where output size is "1".
Does it matter?
09:37:47.836 [20318304@qtp-17745616-0 - /SoapContext/SoapPort] DEBUG
o.a.c.j.i.HolderOutInterceptor - op: [OperationInfo:
{http://xml.ms.com/ns/com/company/lab}process]
09:37:47.836 [20318304@qtp-17745616-0 - /SoapContext/SoapPort] DEBUG
o.a.c.j.i.HolderOutInterceptor - op.hasOutput(): true
09:37:47.836 [20318304@qtp-17745616-0 - /SoapContext/SoapPort] DEBUG
o.a.c.j.i.HolderOutInterceptor - op.getOutput().size(): 1
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-Get-SOAP-Response-from-the-Last-Camel-Processor-in-the-Route-tp4127850p4167701.html
Sent from the Camel - Users mailing list archive at Nabble.com.