You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/09/04 15:32:54 UTC
cvs commit: xml-axis/java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
butek 2002/09/04 06:32:54
Modified: java/src/org/apache/axis/utils axisNLS.properties
java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
Log:
WSDL2Java failed if WSDL referred to an undefined type, but it did not fail
if WSDL referred to an undefined element. Fixed.
Revision Changes Path
1.58 +1 -0 xml-axis/java/src/org/apache/axis/utils/axisNLS.properties
Index: axisNLS.properties
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/axisNLS.properties,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -r1.57 -r1.58
--- axisNLS.properties 4 Sep 2002 13:09:23 -0000 1.57
+++ axisNLS.properties 4 Sep 2002 13:32:54 -0000 1.58
@@ -1009,3 +1009,4 @@
noValidHeader=qname attribute is missing.
badNonNegInt00=Invalid nonNegativeInteger
+undefinedElem00=Element {0} is referenced but not defined.
1.30 +5 -0 xml-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java
Index: SymbolTable.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- SymbolTable.java 30 Aug 2002 19:35:40 -0000 1.29
+++ SymbolTable.java 4 Sep 2002 13:32:54 -0000 1.30
@@ -486,6 +486,11 @@
JavaUtils.getMessage("undefined00",
entry.getQName().toString()));
} // if undefined
+ else if (entry instanceof UndefinedElement) {
+ throw new IOException(
+ JavaUtils.getMessage("undefinedElem00",
+ entry.getQName().toString()));
+ }
}
}
} // checkForUndefined