camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: howto expose a route via ws in a spring file without writing java code?
Date Mon, 02 Feb 2009 09:00:03 GMT

AFAIK, cxf/http bc just wrap a message stream with a JBI message
envelop, the message's marshaling and unmarshaling work will be done by
cxf se.

For the bc part, it doesn't care about the SEI (service endpoint
interface) which holds the xml and java object instance mapping information.

In Camel you can configure the CXF endpoint with Spring xml, but you
need to use WSDL2Java to generate the SEI or you already have the SEI.


Matteo Redaelli wrote:
> Yes, thanks!
> But I think it would be very nice and powerful for Camel to be able to
> expose a route as a webservice without java coding ... with only spring xml,
> ...
> Can smx do it? a cxf/http bc component that call an internal camel jbi
> component?
> thanks
> matteo
> willem.jiang wrote:
>> If you already has a wsdl file , you could use CXF's wsdl2java to
>> generate a bunch of type classes and a SEI first.
>> Then you can delegate the query request to a camel-jdbc component.
>> But I think you need to add some customer processors to take care of the
>> invocation parameters.
>> you can find some examples here [1][2]
>> [1]
>> [2]
>> Willem
>> Matteo Redaelli wrote:
>>> I read that with cxf it is possibile to expose webservices starting from
>>> a
>>> wsdl file or java code.
>>> I would like to expose with ws/cxf (wsdl first?) a camel-jdbc query in a
>>> spring file without writing a line of java code. is it possibile?
>>> Thanks in advance
>>> Matteo

View raw message