Author: jim.ma
Date: 2010-11-24 04:40:24 -0500 (Wed, 24 Nov 2010)
New Revision: 13319
Modified:
stack/cxf/branches/jbossws-cxf-3.4.0/modules/server/src/main/java/org/jboss/wsf/stack/cxf/metadata/services/DDBeans.java
stack/cxf/branches/jbossws-cxf-3.4.0/modules/server/src/main/java/org/jboss/wsf/stack/cxf/metadata/services/DDEndpoint.java
Log:
[JBWS-3140][JBWS-3141]:Added the wsa responses and mtom threshold configuration in cxf
spring configuration xml
Modified:
stack/cxf/branches/jbossws-cxf-3.4.0/modules/server/src/main/java/org/jboss/wsf/stack/cxf/metadata/services/DDBeans.java
===================================================================
---
stack/cxf/branches/jbossws-cxf-3.4.0/modules/server/src/main/java/org/jboss/wsf/stack/cxf/metadata/services/DDBeans.java 2010-11-23
17:10:25 UTC (rev 13318)
+++
stack/cxf/branches/jbossws-cxf-3.4.0/modules/server/src/main/java/org/jboss/wsf/stack/cxf/metadata/services/DDBeans.java 2010-11-24
09:40:24 UTC (rev 13319)
@@ -119,6 +119,8 @@
"http://www.springframework.org/schema/beans/spring-beans.xsd " +
"http://cxf.apache.org/transports/jms " +
"http://cxf.apache.org/schemas/configuration/jms.xsd " +
+ "http://cxf.apache.org/bindings/soap " +
+ "http://cxf.apache.org/schemas/configuration/soap.xsd " +
"http://cxf.apache.org/jaxws " +
"http://cxf.apache.org/schemas/jaxws.xsd'>");
Modified:
stack/cxf/branches/jbossws-cxf-3.4.0/modules/server/src/main/java/org/jboss/wsf/stack/cxf/metadata/services/DDEndpoint.java
===================================================================
---
stack/cxf/branches/jbossws-cxf-3.4.0/modules/server/src/main/java/org/jboss/wsf/stack/cxf/metadata/services/DDEndpoint.java 2010-11-23
17:10:25 UTC (rev 13318)
+++
stack/cxf/branches/jbossws-cxf-3.4.0/modules/server/src/main/java/org/jboss/wsf/stack/cxf/metadata/services/DDEndpoint.java 2010-11-24
09:40:24 UTC (rev 13319)
@@ -232,8 +232,13 @@
writer.write(">");
if (this.addressingEnabled) {
+ String responses = "";
+ if (this.addressingResponses != null)
+ {
+ responses = " responses='" + addressingResponses +
"'";
+ }
writer.write("<jaxws:features>");
- writer.write("<wsa:addressing addressingRequired='" +
this.addressingRequired + "'/>");
+ writer.write("<wsa:addressing addressingRequired='" +
this.addressingRequired + "'" + responses + "/>");
writer.write("</jaxws:features>");
}
@@ -243,7 +248,19 @@
writer.write("<soap:soapBinding mtomEnabled='" +
this.mtomEnabled + "'/>");
writer.write("</jaxws:binding>");
}
-
+
+ //So far we only support standard JAXBDataBinding mtom threshold configuration
+
+ if (this.mtomEnabled)
+ {
+ writer.write("<jaxws:dataBinding>");
+ writer.write("<bean
class='org.apache.cxf.jaxb.JAXBDataBinding'>");
+ writer.write("<property name='mtomEnabled'
value='true'/>");
+ writer.write("<property name='mtomThreshold' value='"
+ this.mtomThreshold + "'/>");
+ writer.write("</bean>");
+ writer.write("</jaxws:dataBinding>");
+ }
+
if (this.invoker != null)
{
writer.write("<jaxws:invoker><bean class='" +
this.invoker + "'/></jaxws:invoker>");
Show replies by date