Hi,

I am trying to use  "-db source" option for WSDL code generation. Use case is 
using SAX data source together with spring/blueprint configuration.
Regarding https://issues.apache.org/jira/browse/CXF-3885 it should be supported 
in CXF 2.5.0. I test it with CXF 2.6.0.

Code is successfully generated, I see 
@DataBinding(org.apache.cxf.databinding.source.SourceDataBinding.class) 
annotation in my interface.

But when client tries to send request, following exception is occurs:
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Service 
class org.talend.benchmark.Benchmark met
hod oneWay part {http://www.talend.org/benchmark}parameters cannot be mapped to 
schema. Check for use of a JAX-WS-specif
ic type without the JAX-WS service factory bean.
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createBareMessage(ReflectionServiceFactoryBean.ja
va:1215)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBea
n.java:484)
        at 
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:685)
        at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBe
an.java:536)
        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(Ja
xWsProxyFactoryBeanDefinitionParser.java:79)
        at 
org.apache.cxf.jaxws.spring.JaxWsProxyFactoryBeanDefinitionParser$JAXWSSpringClientProxyFactoryBean.getObject
(JaxWsProxyFactoryBeanDefinitionParser.java:83)
        at 
org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRe
gistrySupport.java:142)

Looking in source code: ReflectionServiceFactoryBean.createBareMessage goes 
through the all message parts and fills the XmlSchemaElement. If the message 
part typeQName and xmlSchema properties are null (it is exactly the case for 
SourceDataBinding), ServiceConstructionException will be thrown.

Are the additional configuration/properties needed for spring/blueprint client 
for this case?
Any ideas?

Regards,
Andrei.

Reply via email to