This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm receiving an XML message over HTTP (in a javaServlet). The incoming XML contains a SOAP message with attachment. There is no web service involved. I want to extract the SOAP attachment from the request. How can I do it?
Detaching an attachment from a SOAP message depends on what format the attachment is in. If it came from a Microsoft source (like MSXML) then it is most likely DIME and you need a DIME parser to deal with it. Something like onion networks: Onion Networks Web Page.
If it comes from a Java-based source then there are several things you can do. Most people seem to be using Axis for this kind of thing - check out: