[
https://issues.apache.org/activemq/browse/CAMEL-1254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49270#action_49270
]
Charles Moulliard commented on CAMEL-1254:
------------------------------------------
@William,
This is strange because I have made the following test.
1) Case 1 : bean reference passed to the serviceClass
<bean id="reportIncidentEndpoint"
class="org.apache.camel.example.reportincident.service.ReportIncidentEndpoint"/>
<!-- webservice endpoint -->
<cxf:cxfEndpoint id="reportIncident"
address="/incident"
wsdlURL="/WEB-INF/wsdl/report_incident.xml"
serviceClass="#reportIncidentEndpoint"
endpointName="s:ReportIncidentPort"
serviceName="s:ReportIncidentService"
xmlns:s="http://reportincident.example.camel.apache.org"
/>
This case generates the error reported hereunder. As we can see, the bean that
Spring must be created point to the interface class generated by wsdl2java of
CXF and does not reference any OSGI bean service.
2) Case 2 : class defined in the serviceClass
<!-- webservice endpoint -->
<cxf:cxfEndpoint id="reportIncident"
address="/incident"
wsdlURL="/WEB-INF/wsdl/report_incident.xml"
serviceClass="org.apache.camel.example.reportincident.service.ReportIncidentEndpoint"
endpointName="s:ReportIncidentPort"
serviceName="s:ReportIncidentService"
xmlns:s="http://reportincident.example.camel.apache.org"
/>
This implementation works.
Question : How can I verify/check that the snapshots used (2.0 for Camel and
2.2 for CXF) include the modification ?
> camel-cxf: URI option for serviceClass does not support lookup in registry
> --------------------------------------------------------------------------
>
> Key: CAMEL-1254
> URL: https://issues.apache.org/activemq/browse/CAMEL-1254
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-cxf
> Affects Versions: 1.5.0
> Reporter: Claus Ibsen
> Assignee: William Tam
> Priority: Minor
> Fix For: 1.6.0, 2.0.0
>
>
> Having an endpoint such as:
> {code}
> String cxfEndpoint =
> "cxf://http://localhost:8080/part-five/webservices/incident"
> +
> "?serviceClass=org.apache.camel.example.reportincident.ReportIncidentEndpoint"
> + "&wsdlURL=report_incident.wsdl";
> {code}
> The serviceClass option currently only supports defining a FQN for the class.
> I think we need to support Registry lookup as well using the # notation. So
> you can do:
> {code}
> String cxfEndpoint =
> "cxf://http://localhost:8080/part-five/webservices/incident"
> + "?serviceClass=#reportService"
> + "&wsdlURL=report_incident.wsdl";
> {code}
> And then have it defined in Spring XML:
> {code}
> <bean id="reportService" class="...">
> {code}
> The # notation is already supported if you use the cxf Spring XML
> configuration. We need this in the Java DSL as well.
> Sorry if it already exists. But I got a hint from a Camel end user that it
> didn't
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.