-
Task
-
Resolution: Done
-
Major
-
jbossws-native-3.4.0.CR1
-
None
XMLFragment throws exception when client dispatch a StreamSource request:
StreamSource requestSource = new StreamSource(new File(requetMessage.xml));
dispatch.invoke(requestSource);
Here the input stream of requestSource is null , the StreamSource constructor uses file.toURI() to set the systemId value . We can do some enhancement to create Input stream internally from the systemId for this case.
Anyway constructs a StreamSource with InputStream or Reader will be more informative than StreamSource(File f) for StreamSource consumer to know where to get/read the data source .