Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C8BF2DD29 for ; Thu, 15 Nov 2012 12:14:20 +0000 (UTC) Received: (qmail 17751 invoked by uid 500); 15 Nov 2012 12:14:20 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 16626 invoked by uid 500); 15 Nov 2012 12:14:14 -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 16572 invoked by uid 99); 15 Nov 2012 12:14:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2012 12:14:11 +0000 Date: Thu, 15 Nov 2012 12:14:11 +0000 (UTC) From: "Johannes Rost (JIRA)" To: issues@cxf.apache.org Message-ID: <1064884181.118812.1352981651862.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (CXF-4636) Code generation and runtime do not support portType and binding in different namespaces MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Johannes Rost created CXF-4636: ---------------------------------- Summary: Code generation and runtime do not support portType and binding in different namespaces Key: CXF-4636 URL: https://issues.apache.org/jira/browse/CXF-4636 Project: CXF Issue Type: Bug Components: JAX-WS Runtime, Soap Binding Affects Versions: 2.7.0, 2.5.6, 2.6.1 Reporter: Johannes Rost When trying to import a webservice definition with wsdl2java the process fails with a WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Could not find portType for binding [...] This is the case for all three CXF-Version mentioned above as affected. When generating Jax-WS classes with wsimport the same exception is thrown when trying to create a Client via CXF/Spring. I will add an ZIP-file containing the WSDL- and XSD-files, a sample Spring context XML and the Java-files generated by wsimport shortly. The exception is the following: org.apache.cxf.wsdl11.WSDLRuntimeException: Could not find portType for binding {http://schemas.microsoft.com/ws/2005/02/mex/bindings}MetadataExchangeHttpBinding_IVsiService. Check wsdl for errors. at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:321) at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:203) at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:142) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:412) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:534) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248) at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205) at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90) at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:155) at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:156) at org.apache.cxf.jaxws.spring.JaxWsProxyFactoryBeanDefinitionParser$JAXWSSpringClientProxyFactoryBean.create(JaxWsProxyFactoryBeanDefinitionParser.java:79) at org.apache.cxf.jaxws.spring.JaxWsProxyFactoryBeanDefinitionParser$JAXWSSpringClientProxyFactoryBean.getObject(JaxWsProxyFactoryBeanDefinitionParser.java:83) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142) ... 32 more -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira