cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes Rost (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-4636) Code generation and runtime do not support portType and binding in different namespaces
Date Thu, 15 Nov 2012 12:14:11 GMT
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

Mime
View raw message