axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kei...@apache.org
Subject svn commit: r683920 - in /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description: AxisService2WSDL20.java WSDL20ToAxisServiceBuilder.java
Date Fri, 08 Aug 2008 09:50:51 GMT
Author: keithc
Date: Fri Aug  8 02:50:51 2008
New Revision: 683920

URL: http://svn.apache.org/viewvc?rev=683920&view=rev
Log:
Fixing https://issues.apache.org/jira/browse/AXIS2-3922


Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java?rev=683920&r1=683919&r2=683920&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL20.java
Fri Aug  8 02:50:51 2008
@@ -253,6 +253,11 @@
         // generate default endpoint elements.
         Set bindings = new HashSet();
         Map endpointMap = axisService.getEndpoints();
+        Object value = axisService.getParameterValue("isCodegen");
+        boolean isCodegen = false;
+        if (JavaUtils.isTrueExplicitly(value)) {
+           isCodegen = true;
+        }
         if (endpointMap != null && endpointMap.size() > 0) {
 
             OMElement serviceElement = getServiceElement(wsdl, tns, omFactory, interfaceName);
@@ -267,7 +272,7 @@
                 /*
 			    * Some transports might not be active at runtime.
 			    */
-                if (!axisEndpoint.isActive()) {
+                if (!isCodegen && !axisEndpoint.isActive()) {
                     continue;
                 }
                 AxisBinding axisBinding = axisEndpoint.getBinding();

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java?rev=683920&r1=683919&r2=683920&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
Fri Aug  8 02:50:51 2008
@@ -213,6 +213,9 @@
             wsdlDescriptionParamter.setValue(description);
             axisService.addParameter(wsdlDescriptionParamter);
 
+            if (isCodegen) {
+                axisService.addParameter("isCodegen", Boolean.TRUE);
+            }
             if (description == null) {
                 return null;
             }



Mime
View raw message