Author: rmannibucau
Date: Thu Oct 24 07:09:31 2013
New Revision: 1535292
URL: http://svn.apache.org/r1535292
Log:
TOMEE-1064 adding schema-locations and wsdl-location property for soap cxf
endpoints
Modified:
tomee/tomee/trunk/server/openejb-cxf/src/main/java/org/apache/openejb/server/cxf/CxfEndpoint.java
Modified:
tomee/tomee/trunk/server/openejb-cxf/src/main/java/org/apache/openejb/server/cxf/CxfEndpoint.java
URL:
http://svn.apache.org/viewvc/tomee/tomee/trunk/server/openejb-cxf/src/main/java/org/apache/openejb/server/cxf/CxfEndpoint.java?rev=1535292&r1=1535291&r2=1535292&view=diff
==============================================================================
---
tomee/tomee/trunk/server/openejb-cxf/src/main/java/org/apache/openejb/server/cxf/CxfEndpoint.java
(original)
+++
tomee/tomee/trunk/server/openejb-cxf/src/main/java/org/apache/openejb/server/cxf/CxfEndpoint.java
Thu Oct 24 07:09:31 2013
@@ -42,6 +42,7 @@ import javax.xml.ws.Binding;
import javax.xml.ws.handler.Handler;
import javax.xml.ws.http.HTTPBinding;
import javax.xml.ws.soap.SOAPBinding;
+import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@@ -163,6 +164,21 @@ public abstract class CxfEndpoint {
svrFactory.setDestinationFactory(httpTransportFactory);
svrFactory.setServiceClass(serviceFactory.getServiceClass());
+ final Properties beanConfig = serviceConfiguration.getProperties();
+ final Collection<ServiceInfo> availableServices =
serviceConfiguration.getAvailableServices();
+
+ // endpoint properties
+ if (beanConfig != null) {
+ final String schemaLocations =
beanConfig.getProperty(CXF_JAXWS_PREFIX + "schema-locations");
+ if (schemaLocations != null) {
+
svrFactory.setSchemaLocations(Arrays.asList(schemaLocations.split(",")));
+ }
+ final String wsdlLocation =
beanConfig.getProperty(CXF_JAXWS_PREFIX + "wsdl-location");
+ if (wsdlLocation != null) {
+ svrFactory.setWsdlLocation(wsdlLocation);
+ }
+ }
+
// look for bean info if exists
CxfUtil.configureEndpoint(svrFactory, serviceConfiguration,
CXF_JAXWS_PREFIX);