Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 55360 invoked from network); 19 Jun 2009 17:40:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jun 2009 17:40:29 -0000 Received: (qmail 41776 invoked by uid 500); 19 Jun 2009 17:40:39 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 41752 invoked by uid 500); 19 Jun 2009 17:40:39 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 41742 invoked by uid 99); 19 Jun 2009 17:40:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2009 17:40:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2009 17:40:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AE46B29A0013 for ; Fri, 19 Jun 2009 10:40:07 -0700 (PDT) Message-ID: <472005486.1245433207712.JavaMail.jira@brutus> Date: Fri, 19 Jun 2009 10:40:07 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Resolved: (CXF-1822) WSDL Schema Imports In-Reply-To: <1167666437.1222364144287.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp resolved CXF-1822. ------------------------------ Resolution: Fixed Fix Version/s: 2.2.3 2.1.6 Assignee: Daniel Kulp > WSDL Schema Imports > ------------------- > > Key: CXF-1822 > URL: https://issues.apache.org/jira/browse/CXF-1822 > Project: CXF > Issue Type: Bug > Affects Versions: 2.1.2 > Reporter: Murtaza Goga > Assignee: Daniel Kulp > Priority: Minor > Fix For: 2.1.6, 2.2.3 > > > The endpoint and the CXFServlet cannot be configured in such a way that a client consuming a dynamically generated WSDL receives all the imported > and included schemas. > The generated WSDL only generates the schema import with the namespace without the schemaLocation. The WSDL writer and WSDL query handler do not render the schemaLocation value relatvie to the Servlet so that the client consuming the WSDL can look it up. > Example configruation below: > End Configuration: > id="helloWorld" > implementor="com.sandbox.service.HelloWorldImpl" > address="/HelloWorld"> > > file:///D:/apps/CXFProto/schemas/domain.xsd > > > WSDL Generated: > targetNamespace="http://service.sandbox.com/" > xmlns:ns1="http://cxf.apache.org/bindings/xformat" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:tns="http://service.sandbox.com/" > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > attributeFormDefault="unqualified" > elementFormDefault="qualified" > targetNamespace="http://service.sandbox.com/" > xmlns:cs="http://www.sandbox.com/components" > xmlns:sb="http://service.sandbox.com/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ... > > The WSDL generator consumes the domain.xsd specified at the endpoint configuration in Spring and renders it in the WSDL. However the schemaLocation attribute does not contain the path to the components.xsd imported. > The import should look something like this: > > Thus a client consuming the WSDL can lookup components.xsd. Same issue with the xsd:include element. A configuration option to get this behavior would be appropriate or the default behavior changed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.