File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Soap with attachments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Soap with attachments" Watch "Soap with attachments" New topic

Soap with attachments

Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
I will have to invoke web service which will return me soap message with attachments. Now my plan is to create a dummy web service that will do this and subsequently build a client to get this message. But first, how do I construct an xml document with attachments? Any ideas or I am missing something really simple here?
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Check out chapter 9 of The J2EE 1.4 Tutorial.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
If you are using Apache Axis 1.1, then their is example available under samples folder ( which could help you further..

Spritle Software Blogs
Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
Thank you guys.
I agree. Here's the link:
subject: Soap with attachments
jQuery in Action, 3rd edition