----Boundary_value Content-Type: application/pdf Content-Id: pdfnameA
%PDF-1.4 ...pdf content... %%EOF
----Boundary_value Content-Type: application/pdf Content-Id: pdfnameB
%PDF-1.4 ...pdf content... %%EOF
Question: How can I extract pdf files from this SOAP attachment? First, I need to populate this soap file into a SOAPMessage object, then I tried to use javax.xml.soap.AttachmentPart class, I can use getContentId() and getContentType() to retrieve the header, but either java.lang.Object getContent() or getDataHandler() lack the methods to let me write the pdf content as a string to a file. Any ideas?
TIA,
-Daniel