[
https://issues.apache.org/jira/browse/CXF-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Johannes Rost updated CXF-4636:
-------------------------------
Description:
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 a 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
was:
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
> 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.6.1, 2.5.6, 2.7.0
> Reporter: Johannes Rost
> Attachments: CXF-4636.zip
>
>
> 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 a 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