Author: gnodet
Date: Tue Feb 13 02:27:18 2007
New Revision: 506957
URL: http://svn.apache.org/viewvc?view=rev&rev=506957
Log:
SM-382: Ws-Security signature does not work for outbound
Modified:
incubator/servicemix/branches/servicemix-3.1/common/servicemix-soap/src/main/java/org/apache/servicemix/soap/marshalers/SoapWriter.java
Modified:
incubator/servicemix/branches/servicemix-3.1/common/servicemix-soap/src/main/java/org/apache/servicemix/soap/marshalers/SoapWriter.java
URL:
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-3.1/common/servicemix-soap/src/main/java/org/apache/servicemix/soap/marshalers/SoapWriter.java?view=diff&rev=506957&r1=506956&r2=506957
==============================================================================
---
incubator/servicemix/branches/servicemix-3.1/common/servicemix-soap/src/main/java/org/apache/servicemix/soap/marshalers/SoapWriter.java
(original)
+++
incubator/servicemix/branches/servicemix-3.1/common/servicemix-soap/src/main/java/org/apache/servicemix/soap/marshalers/SoapWriter.java
Tue Feb 13 02:27:18 2007
@@ -93,6 +93,10 @@
}
private void writeSimpleMessage(OutputStream out) throws Exception {
+ if (message.getDocument() 1= null) {
+ marshaler.sourceTransformer.toResult(new
DOMSource(message.getDocument()), new StreamResult(out));
+ return;
+ }
XMLStreamWriter writer =
marshaler.getOutputFactory().createXMLStreamWriter(out);
writer.writeStartDocument();
if (marshaler.isSoap()) {