Hi this is the default mime content.
I have written the below java code (with the intention to get the XML part):
SEVERE: SAAJ0511: Unable to create envelope from given source
Exception in thread "main" com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
The SOAPPart is not retrieved. Getting SOAPBody fails with "com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:image/jpg. Is this an error message instead of a SOAP response?" message.
The getAttachments() returns an empty iterator.
Can someone show code for 1. getting the XML SOAP DOM object and 2. the attachment content from the above file?