Return-Path: Delivered-To: apmail-xml-axis-dev-archive@xml.apache.org Received: (qmail 35284 invoked by uid 500); 3 Apr 2002 16:57:12 -0000 Mailing-List: contact axis-dev-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@xml.apache.org Received: (qmail 35275 invoked from network); 3 Apr 2002 16:57:12 -0000 Message-ID: From: "Blumenkrantz, Jason" To: "Axis-Dev (E-mail)" Subject: [PATCH] Fix to WSDL2Java SymbolTable Date: Wed, 3 Apr 2002 11:57:12 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C1DB30.997B6AC0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C1DB30.997B6AC0 Content-Type: text/plain; charset="iso-8859-1" Using the latest nigthly build, I am unable to use WSDL2Java on local WSDL files with local relative imported WSDL files. Looking into SymbolTable.getURL(), it looks like the third attempt if (contextURL != null) { String contextFileName = contextURL.getFile(); String parentName = new File(contextFileName).getParent(); } was never quite completed. The supplied patch will take the parent name and build a new url from it: url = new URL("file:" + parentName + File.separator + spec); which will create a file where the spec is relative to the parent on the file system. This works for my case of local WSDL files with local relative imports and shouldn't affect the existing code any. The patch was made against the 4/3 nightly build. Thanks, Jason Blumenkrantz jason.blumenkrantz@tfn.com <> ------_=_NextPart_000_01C1DB30.997B6AC0 Content-Type: application/octet-stream; name="SymbolTable.java.diff" Content-Disposition: attachment; filename="SymbolTable.java.diff" 469a470,478 > url = new URL("file:" + parentName + File.separator + spec); > try { > url.openStream(); > } > catch (IOException secondioe) { > throw new FileNotFoundException(url.toString()); > } > } else { > throw new FileNotFoundException(url.toString()); 471d479 < throw new FileNotFoundException(url.toString()); ------_=_NextPart_000_01C1DB30.997B6AC0--