axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r366323 - in /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment: ServiceBuilder.java ServiceGroupBuilder.java
Date Thu, 05 Jan 2006 22:42:48 GMT
Author: dims
Date: Thu Jan  5 14:42:42 2006
New Revision: 366323

URL: http://svn.apache.org/viewcvs?rev=366323&view=rev
Log:
operations not listed in the services.xml have empty message receivers, need to set up defaults
for them

Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceBuilder.java
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceGroupBuilder.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=366323&r1=366322&r2=366323&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
Thu Jan  5 14:42:42 2006
@@ -41,6 +41,7 @@
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.Iterator;
+import java.util.Map;
 
 /**
  * Builds a service description from OM
@@ -98,7 +99,7 @@
             }
 
             // setting the PolicyInclude
-            
+
             // processing <wsp:Policy> .. </..> elements
             Iterator policyElements = service_element.getChildrenWithName(new QName(POLICY_NS_URI,
TAG_POLICY));
 
@@ -151,6 +152,16 @@
                 }
 
                 service.addOperation(operationDesc);
+            }
+
+            // Set the default message receiver for the operations that were 
+            // not listed in the services.xml
+            Iterator operations = service.getPublishedOperations().iterator();
+            while(operations.hasNext()){
+                AxisOperation operation = (AxisOperation) operations.next();
+                if(operation.getMessageReceiver()==null){
+                    operation.setMessageReceiver(loadDefaultMessageReceiver(null, service));
   
+                }
             }
 
             Iterator moduleConfigs = service_element.getChildrenWithName(new QName(TAG_MODULE_CONFIG));

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceGroupBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceGroupBuilder.java?rev=366323&r1=366322&r2=366323&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceGroupBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/deployment/ServiceGroupBuilder.java
Thu Jan  5 14:42:42 2006
@@ -97,7 +97,7 @@
                         try {
                             Utils.fillAxisService(as);
                         } catch (Exception e) {
-                            log.info("Error in scheam generating :" + e.getMessage());
+                            log.info("Error in schema generating :" + e.getMessage());
                         }
                     }
                     serviceList.add(as);



Mime
View raw message