Author: darran.lofthouse(a)jboss.com
Date: 2008-07-21 07:37:59 -0400 (Mon, 21 Jul 2008)
New Revision: 7872
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java
Log:
[JBPAPP-987] Allow JBossWS users to include xml declaration processing instruction in SOAP
messages.
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java 2008-07-21
10:50:31 UTC (rev 7871)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/core/soap/SOAPMessageImpl.java 2008-07-21
11:37:59 UTC (rev 7872)
@@ -57,6 +57,7 @@
private boolean isSWARefMessage;
private SOAPPartImpl soapPart;
private MultipartRelatedEncoder multipartRelatedEncoder;
+ private static final boolean writeXMLDeclaration =
Boolean.getBoolean(WRITE_XML_DECLARATION);
// Cache the associated operation meta data
private OperationMetaData opMetaData;
@@ -65,7 +66,7 @@
{
soapPart = new SOAPPartImpl(this);
setProperty(CHARACTER_SET_ENCODING, "UTF-8");
- setProperty(WRITE_XML_DECLARATION, false);
+ setProperty(WRITE_XML_DECLARATION, writeXMLDeclaration);
}
public CIDGenerator getCidGenerator()
Show replies by date