Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


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
 
Have you checked out Aspose?
 
subject: Parse SOAP Message with Attachment
 
It's not a secret anymore!