I received a SOAP with attachment message.
Attached data is XML document("text/xml" type).
But when I try to get a attachment part by using below source code, I got a
NullPointerException.
Iterator it = message.getAttachments();
AttachmentPart attachment = (AttachmentPart)it.next();
StreamSource content = (StreamSource)attachment.getContent(); <=content is not Null.
InputStream inputstream = content.getInputStream(); <= inputstream is Null.
StreamSource object is OK, but it doesn't return InputStreamObject.
Does anyone know what the problem is?
Thanks in advances.
Junhong.