cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <>
Subject [jira] [Commented] (CXF-4636) Code generation and runtime do not support portType and binding in different namespaces
Date Thu, 15 Nov 2012 17:26:12 GMT


Glen Mazza commented on CXF-4636:

I ran your WSDL with both Metro and CXF using this project:
and it ran fine.  The difference is that you want to run it on VsiService_1.wsdl (the actual
parent WSDL) and not the VsiService.wsdl (which is imported by the VsiService_1.wsdl but not
standalone by itself).  Running it on VsiService.wsdl directly caused the error you mentioned
above with CXF and Metro also refused to process it.

> Code generation and runtime do not support portType and binding in different namespaces
> ---------------------------------------------------------------------------------------
>                 Key: CXF-4636
>                 URL:
>             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:
> 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 {}MetadataExchangeHttpBinding_IVsiService.
Check wsdl for errors.
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(
> 	at org.apache.cxf.wsdl11.WSDLServiceFactory.create(
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(
> 	at
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(
> 	at org.apache.cxf.frontend.ClientFactoryBean.create(
> 	at org.apache.cxf.frontend.ClientProxyFactoryBean.create(
> 	at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(
> 	at org.apache.cxf.jaxws.spring.JaxWsProxyFactoryBeanDefinitionParser$JAXWSSpringClientProxyFactoryBean.create(
> 	at org.apache.cxf.jaxws.spring.JaxWsProxyFactoryBeanDefinitionParser$JAXWSSpringClientProxyFactoryBean.getObject(
> 	at
> 	... 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:

View raw message