Thanks Gret. this example was really helpful.
Now I just want to see if I understood right, I need to create a flow in
which 2 webservices take part. now I thought I should do something like :
from(WS1).....{Do something}....to(WS2). However, from the example I
understood that by doing from(WS1) - the flow endpoint that is exposed is
the same as for WS1, so - the input to the flow will be the same input as
for ws1, And when users call this endpoint they will actually activate the
flow.
however, I need the input to the flow to be a combination of the inputs of
the 2 WS that take part in the flow. In order to do this, do I need to
create a third Webservice, that the input to it will be WS1 input + WS2
input and to start the flow: from(WS3)....to(WS1)....to(WS2)?
If that is the case - what is the advantage of using camel for the flow? I
can write the entire flow in the third WS I'm exposing?
CAn you please advice? maybe there is another way for doing it?
Thanks!
Gert Vanthienen wrote:
>
> L.S.,
>
> Did you already see the tutorial we have for using Camel inside
> ServiceMix at
> http://servicemix.apache.org/3-beginner-using-apache-camel-inside-servicemix.html?
>
> It explains how to use Camel to route between JBI endpoints. You
> shouldn't have to worry about the type of endpoint you are routing to,
> it doesn't matter for the Camel part -- you just address a JBI endpoint
> there. In your case, if you use Camel to send the correct XML body for
> doing the soap request to the endpoint, the servicemix-http component
> will do the correct thing.
>
> Regards,
>
> Gert
>
> docs123 wrote:
>> Hi,
>> I've deployed 2 webservices as proxy services in service mix using
>> servicemix-http component.
>> Now I want to define some flow in which these 2 webservices take part.
>> Can you please let me know what are the steps I need to follow in order
>> to
>> deploy the flow in service-mix using camel?
>> I've tried looking in the examples but none of the ones I found seems to
>> match calling webservices deployed in servicemix using the http
>> component.
>>
>> Thanks!
>>
>
>
>
> -----
> ---
> Gert Vanthienen
> http://www.anova.be
>
--
View this message in context:
http://www.nabble.com/What-are-the-steps-for-defining-webservice-flow-using-camel-in-service-mix-tp18706579s22882p18727949.html
Sent from the Camel - Users mailing list archive at Nabble.com.