This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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
It's not a secret anymore!