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 jm...@apache.org on 2002/08/19 21:13:57 UTC
cvs commit: xml-axis-wsil/java/src/org/apache/wsil/util WSDLDocument.java
jmsnell 2002/08/19 12:13:57
Modified: java/src/org/apache/wsil/util WSDLDocument.java
Log:
Change the default read() behavior to resolve imports. This allows the new WSILProxy getWSDLDocumentsByPortType operation to function correctly. Added a new read(String,boolean) operation that allows users to call read and set import to false.
Revision Changes Path
1.2 +14 -1 xml-axis-wsil/java/src/org/apache/wsil/util/WSDLDocument.java
Index: WSDLDocument.java
===================================================================
RCS file: /home/cvs/xml-axis-wsil/java/src/org/apache/wsil/util/WSDLDocument.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- WSDLDocument.java 6 Jun 2002 18:01:24 -0000 1.1
+++ WSDLDocument.java 19 Aug 2002 19:13:57 -0000 1.2
@@ -246,9 +246,22 @@
public void read(String fileName)
throws WSDLException
{
- this.wsdlDocumentDef = getWSDLReader().readWSDL(null,fileName);
+ read(fileName,true);
}
+ /**
+ * Read the information contained in a WSDL file
+ *
+ * @param fileName the name of the WSDL file to be read. Specify either
+ * the full path to the file, or a URL address.
+ * @param imports true if imports in the WSDL file should be resolved
+ * @exception WSDLException if an error occurs processing the file.
+ */
+ public void read(String fileName, boolean imports)
+ throws WSDLException
+ {
+ this.wsdlDocumentDef = getWSDLReader(imports).readWSDL(null,fileName);
+ }
/**
* Write the WSDL document to the specified file.