Author: klape
Date: 2012-07-16 17:45:17 -0400 (Mon, 16 Jul 2012)
New Revision: 16473
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
Log:
[JBPAPP-7112] Preamble is omitted when supplying WSDL and external XSDs
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2012-07-16
20:30:51 UTC (rev 16472)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2012-07-16
21:45:17 UTC (rev 16473)
@@ -629,7 +629,7 @@
Document document = wsdlRequestHandler.getDocumentForPath(reqURL, wsdlHost,
resPath);
OutputStreamWriter writer = new OutputStreamWriter(outputStream);
- new DOMWriter(writer).setPrettyprint(true).print(document.getDocumentElement());
+ new DOMWriter(writer,
Constants.DEFAULT_XML_CHARSET).setPrettyprint(true).print(document.getDocumentElement());
}
private void handleException(Exception ex) throws ServletException