[
https://issues.apache.org/jira/browse/CAMEL-4351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092757#comment-13092757
]
Willem Jiang commented on CAMEL-4351:
-------------------------------------
Hi Sergey,
I just commit a quick fix for it, you have to add a customer converter to
covert the String into QName like this.
{code}
<bean id="conversionService"
class="org.springframework.context.support.ConversionServiceFactoryBean">
<property name="converters">
<list>
<bean class="org.apache.camel.component.cxf.spring.QNameConverter"/>
</list>
</property>
</bean>
{code}
Can you try it with latest camel trunk for it ?
Willem
> Impossible to use placeholders in endpointName and serviceName attributes of
> cxf:cxfEndpoint
> --------------------------------------------------------------------------------------------
>
> Key: CAMEL-4351
> URL: https://issues.apache.org/jira/browse/CAMEL-4351
> Project: Camel
> Issue Type: Improvement
> Components: camel-cxf
> Affects Versions: 2.7.3
> Reporter: Sergey Zhemzhitsky
> Assignee: Willem Jiang
>
> Here is how endpointName and serviceName are declared in XSD.
> {code}
> <xsd:attribute name="endpointName" type="xsd:QName" />
> <xsd:attribute name="serviceName" type="xsd:QName" />
> {code}
> So the xml parser fails to parse the following element
> {code}
> <cxf:cxfEndpoint id="service" address="${http.service.endpoint.path}"
> wsdlURL="${http.service.wsdl.path}"
> serviceName="${http.service.serviceName}"
> endpointName="${http.service.portName}">
> </cxf:cxfEndpoint>
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira