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/05/09 17:25:22 UTC
cvs commit: xml-axis/java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
butek 02/05/09 08:25:22
Modified: java/src/org/apache/axis/wsdl/gen Parser.java
java/src/org/apache/axis/wsdl/symbolTable SymbolTable.java
Log:
Added access to the WSDL file.
Revision Changes Path
1.2 +8 -0 xml-axis/java/src/org/apache/axis/wsdl/gen/Parser.java
Index: Parser.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/gen/Parser.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Parser.java 9 May 2002 13:14:27 -0000 1.1
+++ Parser.java 9 May 2002 15:25:21 -0000 1.2
@@ -154,6 +154,14 @@
return symbolTable == null ? null : symbolTable.getDefinition();
} // getCurrentDefinition
+ /**
+ * Get the current WSDL URI. The WSDL URI is null until
+ * run is called.
+ */
+ public String getWSDLURI() {
+ return symbolTable == null ? null : symbolTable.getWSDLURI();
+ } // getWSDLURI
+
public void run(String wsdlURI) throws IOException, WSDLException {
if (getFactory() == null) {
setFactory(new NoopFactory());
1.2 +15 -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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SymbolTable.java 9 May 2002 13:14:27 -0000 1.1
+++ SymbolTable.java 9 May 2002 15:25:21 -0000 1.2
@@ -152,6 +152,7 @@
private Definition def = null;
private Document doc = null;
+ private String wsdlURI = null;
/**
* Construct a symbol table with the given Namespaces.
@@ -274,11 +275,24 @@
return types;
} // getTypes
+ /**
+ * Get the Definition. The definition is null until
+ * populate is called.
+ */
public Definition getDefinition() {
return def;
} // getDefinition
/**
+ * Get the WSDL URI. The WSDL URI is null until populate
+ * is called, and ONLY if a WSDL URI is provided.
+ *
+ */
+ public String getWSDLURI() {
+ return wsdlURI;
+ } // getWSDLURI
+
+ /**
* Are we wrapping literal soap body elements.
*/
public boolean isWrapped() {
@@ -329,6 +343,7 @@
if (doc == null) {
throw new IOException(JavaUtils.getMessage("cantGetDoc00", uri));
}
+ this.wsdlURI = uri;
populate(uri, doc);
} // populate