Using Camel to as WS Broker

2012-02-16 Thread Mauricio Chamati
Guys, I've read a lot under camel forums and tutorials, but I could not
found an easy way to use it as a Web Service (WS) broker. I know that it
sounds easy, and I thought camel would work, but I could get it. Any help
would be appreciate, follows the situation: I have many applications
providing their own WS. I would like to have my application (using camel)
to provide a unique point of access (an ESB). How would I do that with
Camel? Any simple example would be appreciate. I am using Java 6.0.30,
Spring 3.1.0 and the last version of Camel.

Thanks!


Re: Using Camel to as WS Broker

2012-02-17 Thread Mauricio Chamati
Sounds exactly what I need, I will test it and send a feedback.
Thanks!


On Thu, Feb 16, 2012 at 11:58 PM, ychawla wrote:

> Hi Guys,
> It looks like you want to use a single service as a facade to the multiple
> services behind the scenes.  Camel can do that.  Does the service that you
> want to use as the facade have a WSDL/Service Spec?  If yes, you can set up
> a CXF endpoint in either Payload or POJO mode for that service.  Your route
> can then provide a content based router to route to your other services.
>
> I would start up configuring a simple route with your back end services and
> then put a facade in front of it.
>
> For example in payload mode:
>
>  id="myBackendService"
>address="http://localhost:8080/backend";
>wsdlURL="classpath:backend.wsdl"
>serviceName="test:ServiceService"
>endpointName="test:Service"
>xmlns:test="http://www.test.com";
>/>
>
>  id="myFacadeService"
>address="http://localhost:8080/backend";
>wsdlURL="classpath:facade.wsdl"
>serviceName="test:ServiceService"
>endpointName="test:Service"
>xmlns:test="http://www.test.com";
>/>
>
>
>  
>
>  insert content based router here based on operation name or using
> XPath filtering on content in message
>
>   
>
>
> You can also set up other routes to feed your web service like a simple
> file
> drop.  If you prefer to do that outside of Camel, a tool like Soap UI would
> help.  Start off my exposing  single service in your route and build up
> from
> there.  You can use some of the existing Maven archetypes to get you up and
> running pretty fast.
>
> Cheers,
> Yogesh
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Using-Camel-to-as-WS-Broker-tp5489513p5491253.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>