Hi,
I've a MTOM jaxws application, the API looks like this
getApplicationXML(Holder<Source> resource)
The resouce is actually a StreamSource but I can not getInputStream()
from the resource.value, but I can getReader() from the it
After deep look into the issue, I found it caused by this class in
JAXB-Impl-2.1.4
com.sun.xml.bind.v2.util.DataSourceSource
@Override
public InputStream getInputStream() {
try {
if(charset==null) return source.getInputStream();
else return null;
} catch (IOException e) {
// argh
throw new RuntimeException(e);
}
}
I just don't understand why not just return source.getInputStream()? is
there any reason we need to check the charset here?
Thanks in advance,
James