[
https://issues.apache.org/activemq/browse/CAMEL-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48694#action_48694
]
Charles Moulliard commented on CAMEL-797:
-----------------------------------------
I must revert my code to test it again. But if my memory is correct, when I try
to do the following , exception was raised because it is not possible to pass
the bean reference as an interface to the serviceclass.
<!-- implementation of the webservice -->
<osgi:reference id="reportIncidentEndpoint"
interface="org.apache.camel.example.reportincident.ReportIncidentService"/>
<!-- webservice endpoint -->
<cxf:cxfEndpoint id="reportIncident"
address="/incident"
wsdlURL="/WEB-INF/wsdl/report_incident.xml"
serviceClass="org.apache.camel.example.reportincident.service.ReportIncidentImpl"
endpointName="s:ReportIncidentPort"
serviceName="s:ReportIncidentService"
xmlns:s="http://reportincident.example.camel.apache.org"/>
With a jaxws endpoint, it is possible to provide the bean reference
<!-- export the webservice using jaxws -->
<jaxws:endpoint id="reportIncident"
implementor="#reportIncidentEndpoint"
address="/incident"
wsdlLocation="/wsdl/report_incident.wsdl"
endpointName="s:ReportIncidentPort"
serviceName="s:ReportIncidentService"
xmlns:s="http://reportincident.example.camel.apache.org"/>
> Add a part 4 to the tutorial (camel-example-reportincident) to show how to
> turn on the code to route messages using DSL language and/or spring xml
> configuration file
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-797
> URL: https://issues.apache.org/activemq/browse/CAMEL-797
> Project: Apache Camel
> Issue Type: Improvement
> Components: documentation, examples
> Affects Versions: 1.4.0
> Reporter: Charles Moulliard
> Assignee: Claus Ibsen
> Fix For: 2.0.0
>
> Attachments: part-four.zip
>
>
> Hi,
> First of all, I would like to thanks Claus for the quality of its tutorial.
> This is a great job for the camel community to have now a second tutorial
> showing the magic of Camel.
> What I would like to propose is to add a fourth part to this tutorial to show
> :
> - How to turn on the code to DSL language and/or spring xml configuration
> file ?
> - How the architecture can be adapted to use Camel as the entry point of the
> web service instead of the CxFServlet ?
> Task to do
> 1) Adapt the architecture to allow Camel to become the entry point of the web
> services
> 2) Transpose the code to routes the messages between the endpoints using DSL
> language through a java class
> 3) Idem bu using a spring configuration file
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.