I am using Spring-ws. I am trying WebServiceTemplate.sendSourceAndReceive(src, mySourceExtractor);
In the extractData
callback method of the SourceExtractor
, I get a DOMSource
. Now what?
I know there is an attachment because when I call the service with soapUI, I can get the attachment (pdf file).
Is there a better way? Thanks.
use a ClientInterceptor:
then attach interceptor to WebServiceTemplate and execute call:
then process the attachments.