Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Web Services and the fly likes Reading a binary SOAP Attachment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Reading a binary SOAP Attachment" Watch "Reading a binary SOAP Attachment" New topic

Reading a binary SOAP Attachment

Beth Schmidt

Joined: Jul 11, 2011
Posts: 2
I am working with a SOAP web service that is sending a PDF as an Attachment.

I am unsure as to how to read this so I can get the image of the PDF so I can rename it and save it into a folder.

Thanks in advance for any help!
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
SAAJ is the API to use for SOAP with attachments.
Example code available in section 5.7 of this document:
(require free registration to download)
Best wishes!

My free books and tutorials:
Beth Schmidt

Joined: Jul 11, 2011
Posts: 2
Thank you Ivan!
I agree. Here's the link:
subject: Reading a binary SOAP Attachment
Similar Threads
how to open attachments
Error while parsing XML with PDF attachment
Adding attachments to web service response
sending pdf or any attachment from a java webservice to java client using JAX-WS and SAAJ
MTOM issue with dispatch client