Hello,

What's the quickest/easiest way to get attachments from a SOAP call in CXF?

Do we have to use an interceptor, as detailed here: 
http://cwiki.apache.org/CXF20DOC/interceptors.html

Or is there an easier way, using a WebserviceContext perhaps?

This is the Apache way, which is fairly triival:


org.apache.axis.MessageContext context =
   org.apache.axis.MessageContext.getCurrentContext();
Message message = context.getRequestMessage();  
Iterator<AttachmentPart> i = message.getAttachments();

Thanks


John

Reply via email to