File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Parse SOAP Message with Attachment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Parse SOAP Message with Attachment" Watch "Parse SOAP Message with Attachment" New topic
Author

Parse SOAP Message with Attachment

Ashfaq Framewala
Greenhorn

Joined: Oct 24, 2004
Posts: 4
Hi,

I have a requirement where I will receive a SOAP message with attachment on a JMS queue. I need to parse this message to get details about the attachment.

I used org.apache.axis.Message class and passed the incoming message. However when I call message.countAttachments() it returns 0 and also if I try to access SOAP part by calling getSOAPPart(), it throws me an error.

Is there a better way in parsing this message?

Thanks and regards,
Ashfaq
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parse SOAP Message with Attachment