axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsosno...@apache.org
Subject svn commit: r400181 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java
Date Fri, 05 May 2006 21:42:06 GMT
Author: dsosnoski
Date: Fri May  5 14:42:04 2006
New Revision: 400181

URL: http://svn.apache.org/viewcvs?rev=400181&view=rev
Log:
Move WSDL generation code so it doesn't override operation definitions provided in service
description

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java?rev=400181&r1=400180&r2=400181&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java
Fri May  5 14:42:04 2006
@@ -142,23 +142,6 @@
             excludeops.add("setOperationContext");
             excludeops.add("destroy");
 
-            // Generating schema for the service if the imple class is JAVA
-            if (!service.isWsdlfound()) {
-                //trying to generate WSDL for the service using JAM  and Java refelection
-                try {
-                    Utils.fillAxisService(service, axisConfig, excludeops);
-                } catch (Exception e) {
-                    /**
-                     * I have log here if some error occours , since service impl
-                     * class can alos be non-java class , so in that case
-                     * it is not posible to generate scheam, so no pint of throwing that
-                     * error ,  I know we have to handle this , untill that I have
-                     * to log this
-                     */
-                    log.error(Messages.getMessage("errorinscheamgen", e.getMessage()), e);
-                }
-            }
-
             //<schema targetNamespace="http://x.y.z"/>
             // setting the PolicyInclude
             // processing <wsp:Policy> .. </..> elements
@@ -221,6 +204,23 @@
                 }
                 if (service.getOperation(operationDesc.getName()) == null) {
                     service.addOperation(operationDesc);
+                }
+            }
+
+            // Generating schema for the service if the imple class is JAVA
+            if (!service.isWsdlfound()) {
+                //trying to generate WSDL for the service using JAM  and Java refelection
+                try {
+                    Utils.fillAxisService(service, axisConfig, excludeops);
+                } catch (Exception e) {
+                    /**
+                     * I have log here if some error occours , since service impl
+                     * class can alos be non-java class , so in that case
+                     * it is not posible to generate scheam, so no pint of throwing that
+                     * error ,  I know we have to handle this , untill that I have
+                     * to log this
+                     */
+                    log.error(Messages.getMessage("errorinscheamgen", e.getMessage()), e);
                 }
             }
 



Mime
View raw message