Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 659 invoked from network); 4 Feb 2010 09:08:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2010 09:08:59 -0000 Received: (qmail 27947 invoked by uid 500); 4 Feb 2010 09:08:59 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 27901 invoked by uid 500); 4 Feb 2010 09:08:58 -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 27891 invoked by uid 99); 4 Feb 2010 09:08:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 09:08:58 +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; Thu, 04 Feb 2010 09:08:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E884D234C48D for ; Thu, 4 Feb 2010 01:08:27 -0800 (PST) Message-ID: <1727620629.34211265274507951.JavaMail.jira@brutus.apache.org> Date: Thu, 4 Feb 2010 09:08:27 +0000 (UTC) From: "Jara Cesnek (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2648) JaxWSClient Fail on legal interface - XmlSchemaException: Schema for namespace 'nn' already contains type 'tt' In-Reply-To: <1065897517.4541265213967851.JavaMail.jira@brutus.apache.org> 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-2648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829542#action_12829542 ] Jara Cesnek commented on CXF-2648: ---------------------------------- Fixed in cxf-2.2.6.jar. You can close this issue. > JaxWSClient Fail on legal interface - XmlSchemaException: Schema for namespace 'nn' already contains type 'tt' > -------------------------------------------------------------------------------------------------------------- > > Key: CXF-2648 > URL: https://issues.apache.org/jira/browse/CXF-2648 > Project: CXF > Issue Type: Bug > Components: Aegis Databinding > Affects Versions: 2.1.9 > Reporter: Jara Cesnek > > Have interface with two methods. Each has parameter with *same name but other type!* > {code} > @WebService(name="documents", targetNamespace="http://v1_0_0.ws.doc.daisy.marbes.cz") > public interface Documents { > void getDocumentByFilter( @WebParam(name="filter") VOFilter); > void getDocumentByExtendedFilter( @WebParam(name="filter") VOExtendedFilter); > } > {code} > {code} > @XmlType(name = "SimpleFilter", namespace = NamespaceInfo.NAMESPACE_V1) > public class VOFilter { > ... > } > @XmlType(name = "ExtendedFilter", namespace = NamespaceInfo.NAMESPACE_V1) > public class VOExtendedFilter { > ... > } > {code} > On the server side all working. WSDL seems OK and method call by SOAPUI working too. > But on the client side (when try to call by CXF client) exception is thrown : > {code} > org.apache.ws.commons.schema.XmlSchemaException: Schema for namespace 'http://wo.v1.ws.doc.modules.daisy.marbes.cz' already contains type 'filter' > at org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:558) > at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:206) > at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:121) > at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:509) > at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:493) > at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:158) > at org.apache.cxf.databinding.AbstractDataBinding.addSchemaDocument(AbstractDataBinding.java:136) > at org.apache.cxf.aegis.databinding.AegisDatabinding.createSchemas(AegisDatabinding.java:532) > at org.apache.cxf.aegis.databinding.AegisDatabinding.initialize(AegisDatabinding.java:323) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:378) > at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:530) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:437) > at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:192) > at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:165) > at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100) > at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:52) > at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:102) > at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:115) > {code} > Client code: > {code} > JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); > factory.setServiceClass( Documents.class ); > factory.setAddress(publishURL); > factory.setDataBinding(new AegisDatabinding()); > Object remoteInterfaceImpl = factory.create(); > {code} > Server code: > {code} > JaxWsServerFactoryBean serverFactoryBean = new JaxWsServerFactoryBean(); > serverFactoryBean.setServiceClass(AopUtils.getTargetClass(implementor)); // Documents.class > serverFactoryBean.setServiceBean(implementor); //DocumentsImpl > serverFactoryBean.setDataBinding(new AegisDatabinding()); > serverFactoryBean.setAddress(url); > serverFactoryBean.create(); > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.