geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1086848 - /geronimo/server/trunk/plugins/axis2/geronimo-axis2-builder/src/main/java/org/apache/geronimo/axis2/builder/Axis2Builder.java
Date Wed, 30 Mar 2011 05:59:14 GMT
Author: xuhaihong
Date: Wed Mar 30 05:59:14 2011
New Revision: 1086848

URL: http://svn.apache.org/viewvc?rev=1086848&view=rev
Log:
GERONIMO-5883 Use a system property to make Provider style web service more user-friendly

Modified:
    geronimo/server/trunk/plugins/axis2/geronimo-axis2-builder/src/main/java/org/apache/geronimo/axis2/builder/Axis2Builder.java

Modified: geronimo/server/trunk/plugins/axis2/geronimo-axis2-builder/src/main/java/org/apache/geronimo/axis2/builder/Axis2Builder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/axis2/geronimo-axis2-builder/src/main/java/org/apache/geronimo/axis2/builder/Axis2Builder.java?rev=1086848&r1=1086847&r2=1086848&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/axis2/geronimo-axis2-builder/src/main/java/org/apache/geronimo/axis2/builder/Axis2Builder.java
(original)
+++ geronimo/server/trunk/plugins/axis2/geronimo-axis2-builder/src/main/java/org/apache/geronimo/axis2/builder/Axis2Builder.java
Wed Mar 30 05:59:14 2011
@@ -64,8 +64,11 @@ import org.slf4j.LoggerFactory;
 
 @GBean(j2eeType = NameFactory.MODULE_BUILDER)
 public class Axis2Builder extends JAXWSServiceBuilder {
+
     private static final Logger log = LoggerFactory.getLogger(Axis2Builder.class);
 
+    private static final boolean ignoreEmptyWebServiceProviderWSDL = Boolean.getBoolean("org.apache.geronimo.webservice.provider.wsdl.ignore");
+
     protected Collection<WsdlGenerator> wsdlGenerators;
 
     private GBeanInfo defaultContainerFactoryGBeanInfo;
@@ -228,7 +231,13 @@ public class Axis2Builder extends JAXWSS
         }
 
         if (JAXWSUtils.isWebServiceProvider(serviceClass)) {
-            throw new DeploymentException("WSDL must be specified for @WebServiceProvider
service " + serviceName);
+            if (ignoreEmptyWebServiceProviderWSDL) {
+                log.warn("WSDL is not specified for @WebServiceProvider service " + serviceName);
+                //TODO Generate a dummy WSDL for it ?
+                return;
+            } else {
+                throw new DeploymentException("WSDL must be specified for @WebServiceProvider
service " + serviceName);
+            }
         }
 
         if (log.isDebugEnabled()) {



Mime
View raw message