ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r154657 - webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentParser.java
Date Mon, 21 Feb 2005 09:21:51 GMT
Author: deepal
Date: Mon Feb 21 01:21:38 2005
New Revision: 154657

URL: http://svn.apache.org/viewcvs?view=rev&rev=154657
Log:
only the provider class needed to service.xml all the others are optional

Modified:
    webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentParser.java

Modified: webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentParser.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentParser.java?view=diff&r1=154656&r2=154657
==============================================================================
--- webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentParser.java
(original)
+++ webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentParser.java
Mon Feb 21 01:21:38 2005
@@ -228,13 +228,15 @@
      */
     private void procesServiceXML(AxisService axisService) throws DeploymentException {
         int attribCount = pullparser.getAttributeCount();
-        if (attribCount == 3) {
+        boolean proviceFound = false;
+        if (attribCount >= 1) {
             for (int i = 0; i < attribCount; i++) {
                 String attname = pullparser.getAttributeLocalName(i);
                 String attvalue = pullparser.getAttributeValue(i);
                 if (PROVIDERNAME.equals(attname)) {
                     if (dpengine != null && dpengine.getCurrentFileItem() != null)
{
                         dpengine.getCurrentFileItem().setProvideName(attvalue);
+                        proviceFound = true;
                     }
                 } else if (STYLENAME.equals(attname)) {
                     axisService.setStyle(attvalue);
@@ -244,6 +246,9 @@
                 } else {
                     throw new DeploymentException("Bad arguments for the service" + axisService.getName());
                 }
+            }
+            if(!proviceFound ){
+               throw new DeploymentException("Provider class has not been specified");
             }
         } else
             throw new DeploymentException("Bad arguments" + axisService.getName());



Mime
View raw message