cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Klimiuk (JIRA)" <>
Subject [jira] Updated: (CXF-2442) fail to create a service model from class when: BARE parameter style, XmlBeans data binding, XmlBeans' source is WSDL file
Date Tue, 06 Oct 2009 11:27:31 GMT


Michael Klimiuk updated CXF-2442:


Not sure that this is a correct solution of the problem, it worked for us.

That will be great if someone have a look and comment this.

The original source was taken from the CXF 2.2.3 sources:


> fail to create a service model from class when: BARE parameter style, XmlBeans data binding,
XmlBeans' source is WSDL file
> --------------------------------------------------------------------------------------------------------------------------
>                 Key: CXF-2442
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: OtherDatabindings
>    Affects Versions: 2.2.3
>            Reporter: Michael Klimiuk
>            Priority: Blocker
>         Attachments:
> 1. Given WSDL with data types defined inside (imports are not used).
> 2. Generate service interface and xml beans.
> 3. Create a client proxy using ClientProxyFactoryBean:
>        - use BARE parameter style;
>        - use XmlBeans data binding;
>        - do not specify WSDL location.
> Exception in thread "main" org.apache.cxf.service.factory.ServiceConstructionException:
Service class org.example.MyService method queryMethod part {}arg0
cannot be mapped to schema. Check for use of a JAX-WS-specific type without the JAX-WS service
factory bean.
>     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createBareMessage(
>     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(
>     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(
>     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(
>     at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(
>     at org.apache.cxf.frontend.ClientFactoryBean.create(
>     at org.apache.cxf.frontend.ClientProxyFactoryBean.create(
>     at
> Successful creation of a client proxy.
> When the service model is build from the class the XmlBeansSchemaInitializer.mapClass()
method is executed for web service data types.
> The method contains the following condition:
>             if (sourceName.endsWith("wsdl")) {
>                 return;
>             }
> Our source is WSDL with data types defined inside (imports are not used), so the MessagePartInfo
attributes are not fully populated due to this condition. These attributes are missed and
ReflectionServiceFactoryBean.createBareMessage() throws the exception.
> I assume the condition should be removed and the logic should be updated to take into
account definitions of data types contained in WSDL.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message