Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 33362 invoked from network); 29 Nov 2006 16:55:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2006 16:55:56 -0000 Received: (qmail 77698 invoked by uid 500); 29 Nov 2006 16:55:52 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 77660 invoked by uid 500); 29 Nov 2006 16:55:52 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 77642 invoked by uid 99); 29 Nov 2006 16:55:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2006 08:55:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Nov 2006 08:55:41 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 964F37142EC for ; Wed, 29 Nov 2006 08:55:21 -0800 (PST) Message-ID: <25192006.1164819321613.JavaMail.jira@brutus> Date: Wed, 29 Nov 2006 08:55:21 -0800 (PST) From: "Aaron Gourley (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-1790) schemaLocation element of import statements should contain URI reference to schema document. In-Reply-To: <22184081.1164818782480.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/AXIS2-1790?page=comments#action_12454373 ] Aaron Gourley commented on AXIS2-1790: -------------------------------------- Make that AxisService2OM's generateOM() method (not AxisService2WSDL2's) > schemaLocation element of import statements should contain URI reference to schema document. > -------------------------------------------------------------------------------------------- > > Key: AXIS2-1790 > URL: http://issues.apache.org/jira/browse/AXIS2-1790 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Improvement > Components: wsdl > Affects Versions: 1.1 > Environment: Windows XP, Java 5 Update 9 > Reporter: Aaron Gourley > > From W3C schemaLocation spec: http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#composition-schemaImport > Additional reference: http://www.stylusstudio.com/w3c/schema0/schemaLocation.htm#attribute-schemaLocation > id = ID > namespace = anyURI > schemaLocation = anyURI > {any attributes with non-schema namespace . . .}> > Content: (annotation?) > > "In a schema, the include element has a required schemaLocation attribute, and it contains a URI reference which must identify a schema document." > Axis2 is currently using a relative SchemaLocation, which on its own can not be used to identify the schema document. This actually causes a compatibility problem between Glue clients and such WSDLs published by Axis2. > WSDL published by Axis2: > > TerminalLocation > > > > > ..... > > > > > > > > > > > > > When Glue parses this WSDL, it simply creates a URI from the string "TerminalLocation?xsd=xsd0". Since the prefix ("http://localhost:9080/TerminalLocationService/services/") is not shown in the WSDL, a FileNotFoundException occurs and the bind fails. I have not been able to find a workaround using Glue. > I realize that the easy solution is to say that this is a Glue problem, but would it be at all possible to include the address location in the generated WSDL? > Suggested fix: > 1. In AxisService's adjustSchemaLocation(XmlSchema, XmlSchemaExternal, Hashtable, Hashtable) method: > - Change getName() in default mode to getEndpoint() > 2. In AxisService2WSDL2's generateOM() method: > - add call to axisService.setCustomSchemaNamePrefix(axisService.getEndpoint() + "?xsd=") before call to populateSchemaMappings() is made. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org