You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2008/09/03 18:11:57 UTC
svn commit: r691648 -
/servicemix/components/shared-libraries/trunk/servicemix-soap/src/main/java/org/apache/servicemix/soap/marshalers/SoapWriter.java
Author: gnodet
Date: Wed Sep 3 09:11:56 2008
New Revision: 691648
URL: http://svn.apache.org/viewvc?rev=691648&view=rev
Log:
SM-1362: encoding problem creating JMS TextMessage from SoapMessage
Modified:
servicemix/components/shared-libraries/trunk/servicemix-soap/src/main/java/org/apache/servicemix/soap/marshalers/SoapWriter.java
Modified: servicemix/components/shared-libraries/trunk/servicemix-soap/src/main/java/org/apache/servicemix/soap/marshalers/SoapWriter.java
URL: http://svn.apache.org/viewvc/servicemix/components/shared-libraries/trunk/servicemix-soap/src/main/java/org/apache/servicemix/soap/marshalers/SoapWriter.java?rev=691648&r1=691647&r2=691648&view=diff
==============================================================================
--- servicemix/components/shared-libraries/trunk/servicemix-soap/src/main/java/org/apache/servicemix/soap/marshalers/SoapWriter.java (original)
+++ servicemix/components/shared-libraries/trunk/servicemix-soap/src/main/java/org/apache/servicemix/soap/marshalers/SoapWriter.java Wed Sep 3 09:11:56 2008
@@ -107,7 +107,7 @@
marshaler.getSourceTransformer().toResult(new DOMSource(message.getDocument()), new StreamResult(out));
return;
}
- XMLStreamWriter writer = marshaler.getOutputFactory().createXMLStreamWriter(out);
+ XMLStreamWriter writer = marshaler.getOutputFactory().createXMLStreamWriter(out, SourceTransformer.getDefaultCharset());
writer.writeStartDocument();
if (marshaler.isSoap()) {
writeSoapEnvelope(writer);
@@ -120,7 +120,7 @@
XMLStreamReader reader = marshaler.getSourceTransformer().toXMLStreamReader(
message.getFault().getDetails());
XMLStreamHelper.copy(reader, writer);
- } else {
+ } else {
throw new IllegalStateException("Cannot write non xml faults for non soap messages");
}
} else if (message.getSource() != null) {