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 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

Parse SOAP Message with Attachment

Ashfaq Framewala

Joined: Oct 24, 2004
Posts: 4

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,
I agree. Here's the link:
subject: Parse SOAP Message with Attachment
jQuery in Action, 3rd edition