Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 33265 invoked from network); 25 Sep 2007 08:57:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Sep 2007 08:57:26 -0000 Received: (qmail 98298 invoked by uid 500); 25 Sep 2007 08:57:16 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 98166 invoked by uid 500); 25 Sep 2007 08:57:15 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 98155 invoked by uid 500); 25 Sep 2007 08:57:15 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 98152 invoked by uid 99); 25 Sep 2007 08:57:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2007 01:57:15 -0700 X-ASF-Spam-Status: No, hits=-98.8 required=10.0 tests=ALL_TRUSTED,DNS_FROM_DOB,RCVD_IN_DOB X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2007 08:57:24 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1B1F31A9832; Tue, 25 Sep 2007 01:57:04 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r579133 - /webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java Date: Tue, 25 Sep 2007 08:57:03 -0000 To: axis2-cvs@ws.apache.org From: amilas@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070925085704.1B1F31A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: amilas Date: Tue Sep 25 01:57:03 2007 New Revision: 579133 URL: http://svn.apache.org/viewvc?rev=579133&view=rev Log: the systemID must be unique to the schema. So for inline schemas we can not use the baseUri since it is not unique for all the schema. changed to target namespace to make that unique. Modified: webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java Modified: webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java?rev=579133&r1=579132&r2=579133&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java (original) +++ webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java Tue Sep 25 01:57:03 2007 @@ -99,7 +99,7 @@ XmlSchema schema = (XmlSchema)schemas.get(i); InputSource inputSource = new InputSource(new StringReader(getSchemaAsString(schema))); - inputSource.setSystemId(baseURI); + inputSource.setSystemId(schema.getTargetNamespace()); xmlObjectsVector.add(inputSource); } @@ -114,7 +114,7 @@ if(schema.getTargetNamespace().equals(publicId)){ InputSource inputSource = new InputSource(new StringReader(getSchemaAsString(schema))); - inputSource.setSystemId(baseURI); + inputSource.setSystemId(schema.getTargetNamespace()); return inputSource; } } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org