You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2005/02/21 10:21:51 UTC
svn commit: r154657 -
webservices/axis/trunk/java/modules/deployment/src/java/org/apache/axis/deployment/DeploymentParser.java
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());