Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 73095 invoked from network); 12 Oct 2007 06:42:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Oct 2007 06:42:16 -0000 Received: (qmail 81994 invoked by uid 500); 12 Oct 2007 06:42:03 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 81952 invoked by uid 500); 12 Oct 2007 06:42:03 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 81943 invoked by uid 99); 12 Oct 2007 06:42:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 23:42:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jim.ma@iona.com designates 12.170.54.180 as permitted sender) Received: from [12.170.54.180] (HELO amer-mx1.iona.com) (12.170.54.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2007 06:42:07 +0000 X-IronPort-AV: E=Sophos;i="4.21,264,1188792000"; d="scan'208";a="6204465" Received: from amer-ems1.ionaglobal.com ([10.65.6.25]) by amer-mx1.iona.com with ESMTP; 12 Oct 2007 02:41:46 -0400 Received: from [10.129.9.224] ([10.129.9.224]) by amer-ems1.IONAGLOBAL.COM with Microsoft SMTPSVC(6.0.3790.1830); Fri, 12 Oct 2007 02:41:45 -0400 Message-ID: <470F15B3.3030107@iona.com> Date: Fri, 12 Oct 2007 14:35:31 +0800 From: Jim Ma User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: cxf-dev@incubator.apache.org Subject: Re: svn commit: r583674 - in /incubator/cxf/trunk/tools/wsdlto: frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/ frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/ frontend/jaxws/src/test/j... References: <20071011042055.A6B5B1A9832@eris.apache.org> <1192152949.30388.44.camel@gmazza-desktop> In-Reply-To: <1192152949.30388.44.camel@gmazza-desktop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Oct 2007 06:41:45.0594 (UTC) FILETIME=[F50EBDA0:01C80C9A] X-Virus-Checked: Checked by ClamAV on apache.org Hi Glen, Thank you for pointing out these errors. The wsdls I committed for test is different with the wsdls under resources/ wsdl2java_wsdl directory . I modified content for them but I did not change the file name. Thanks Jim Glen Mazza wrote: > Am Donnerstag, den 11.10.2007, 04:20 +0000 schrieb ema@apache.org: > >> Author: ema >> Date: Wed Oct 10 21:20:48 2007 >> New Revision: 583674 >> >> Modified: >> incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java >> URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java?rev=583674&r1=583673&r2=583674&view=diff >> ============================================================================== >> --- incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java (original) >> +++ incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java Wed Oct 10 21:20:48 2007 >> @@ -18,11 +18,15 @@ >> */ >> package org.apache.cxf.tools.wsdlto.frontend.jaxws.customization; >> >> >> private void copyBindingsToWsdl(Node node, Node bindings, MapNamespaceContext ctx) { >> @@ -345,50 +358,71 @@ >> >> } else if (isValidJaxbBindingFile(reader)) { >> - jaxbBindings.add(is); >> + String schemaLocation = root.getAttribute("schemaLocation"); >> + if (StringUtils.isEmpty(schemaLocation)) { >> + root.setAttribute("schemaLocation", wsdlURL); >> + try { >> + File tmpFile = FileUtils.createTempFile("jaxbbinding", ".xml"); >> + XMLUtils.writeTo(root, new FileOutputStream(tmpFile)); >> + InputSource newis = new InputSource(URIParserUtil.getAbsoluteURI(tmpFile >> + .getAbsolutePath())); >> + jaxbBindings.add(newis); >> + tmpFile.deleteOnExit(); >> + } catch (Exception e) { >> + Message msg = new Message("FAILED_TO_ADD_SCHEMALOACTION", LOG, bindingFile); >> > > > ..._SCHEMALOCATION > > > > >> Modified: incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/Messages.properties >> URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/Messages.properties?rev=583674&r1=583673&r2=583674&view=diff >> ============================================================================== >> --- incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/Messages.properties (original) >> +++ incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/Messages.properties Wed Oct 10 21:20:48 2007 >> @@ -20,10 +20,11 @@ >> # >> STAX_PARSER_ERROR = StAX parser error, check your external binding file(s) >> UNKNOWN_BINDING_FILE= Unknown external binding files : {0} >> -NOT_POINTTO_URL = External binding file: {0} does not point to the specified wsdl: {2}, resolved as {1} >> +CAN_NOT_FIND_BINDING_WSDL = Can not read the specified wsdl {0} that external binding file {1} points >> > > > ...that external binding file {1} refers to [or ...points to] > > > >> Added: >> incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/CustomizedWSDLLocator.java >> URL: >> http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/CustomizedWSDLLocator.java?rev=583674&view=auto >> ============================================================================== >> --- >> incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/CustomizedWSDLLocator.java (added) >> +++ >> incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/CustomizedWSDLLocator.java >> > > >> + >> + private Map elementMap; >> + private String lastestImportURI; >> > > > latestImportURI > > > >> + private boolean resolveFormMap; >> > > > resolveFromMap > > > >> + >> + } catch (URISyntaxException e) { >> + throw new RuntimeException("Resolve " + importLocation + >> "Failed: ", e); >> > > > "Failed to resolve " + importLocation + ": " > > > >> Added: incubator/cxf/trunk/tools/wsdlto/test/src/test/resources/wsdl2java_wsdl/cxf1094/hello_world.wsdl >> URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/test/src/test/resources/wsdl2java_wsdl/cxf1094/hello_world.wsdl?rev=583674&view=auto >> ============================================================================== >> > > > It seems like we are creating too many WSDLs, and many of them appear to > be just copies of others. It would be nice if they could be reused. > > Regards, > Glen > > >