There is no need for a pipeline in such a case, as the exchange should go from the consumer endpoint to the provider endpoint without any intermediary service. The pipeline is to bridge InOnly and InOut mep, but in this case, there is only a single InOut mep. I do not see any reason why it does not work.
Joao, could you indicate if the http client is blocked while waiting for the response, or if an empty response is sent ? Cheers, Guillaume Nodet On 7/24/06, Pierre NOTEL <[EMAIL PROTECTED]> wrote:
To receive the response of a component, I think you should use the eip:pipeline to use the in-out mep functionality. I haven't use it with a consumer endpoint but with an external webservice (provider) to catch the response and sent it to other component. If anyone has other solution (easier)... Cheers, Pierre NOTEL //******************************************* João Luz wrote: > I'm only trying to call a webservice via servicemix. The problem is that the request reachs the webservice and goes back to servicemix. But it never reachs the original caller. > > Thanks, > João Vieira da Luz > > -----Original Message----- > From: Pierre NOTEL [mailto:[EMAIL PROTECTED] > Sent: segunda-feira, 24 de Julho de 2006 15:28 > To: [email protected] > Subject: Re: How to call a external webservice? > > I think you shoud use a eip:pipeline in order to receive response from the webservice and send it to the consumer... > > For example : > > <eip:pipeline service="foo:WS" endpoint="pipelineWS"> > <eip:transformer> > <eip:exchange-target service="foo:WService" /> > </eip:transformer> > <eip:target> > <eip:exchange-target service="foo:trace" /> > </eip:target> > </eip:pipeline> > > The response of the webservice will be sent to the trace component. > > Hope it will be useful, > > Pierre NOTEL > > //**************************************************** > João Luz wrote: > >> Hi, >> >> My starting point was exactly your excelent post. >> >> The problem I have is that all works fine in the request chain, until the moment that consumer endpoint should send the response to the client. Step that I can't figure out how to put working. >> >> 1- I call webservice exposed via consumer endpoint >> 2- Consumer endpoint forwards to a provider endpoint that >> 3- Provider forwards to the real webservice >> 4- WebService executes >> 5- Provider receives the response from webservice and it forwards to >> the consumer >> 6- Consumer should send the message to the client, but the message never reachs the client that made the request. >> >> Client, servicemix and Webservice run in 3 different jvm. >> >> Thanks a lot to all, >> João >> >> -----Original Message----- >> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Alessio >> D'Innocenti >> Sent: segunda-feira, 24 de Julho de 2006 14:47 >> To: [email protected] >> Subject: Re: How to call a external webservice? >> >> Take a look at this >> http://www.nabble.com/External-Webservices-binding-%28the-answer%29-tf >> 1971463.html >> >> João Luz ha scritto: >> >> >>> How can we, using provider/consumer endpoints, call an external webservice using servicemix? >>> >>> Thanks in advance, >>> João >>> >>> >>> >>> >> >> > > >
