Reputation: 1833
We have a Web Service client generated with CXF from a WSDL. We now need to have an access to the generated SOAP requests in order to persist them. It seems that the framework does not provide this behaviour by default.
Anyway do you guys ever tried to do such a thing?
I am thinking of building my own interceptor that can access to the fully generated message but maybe there is a better choice?
Any advice?
Thanks in advance.
Upvotes: 1
Views: 909
Reputation: 100133
By default CXF uses stax to stream your requests. If you add an interceptor, you can get access to the stax output writer and copy the events.
There is existing code in CXF to force the existence of a DOM tree; see code related to SAAJ and security.
In general, detailed CXF questions get better answers on the CXF user mailing list than here.
Upvotes: 2