L.S.,

You could solve this by using a servicemix-eip wiretap, to send a copy
of the incoming exchange to the Alfresco endpoint.  Translating this
to servicemix-camel, you could create a Camel route that does a
multicast.  This will send the same message to all endpoints mentioned
in the multicast and will take the response from the last endpoint.
The route would look like
from("...").multicast().to(<Alfresco>).to(<Identity>)

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/2/25 MrNinni <[email protected]>:
>
> Thankyou for the answer.
> The response from the first webservice (an object Identity) goes at the
> client, but username and password also goes at the second webservice
> (Alfresco)
>
>
> Gert Vanthienen wrote:
>>
>> L.S.,
>>
>> You can probably solve this problem by just using the enterprise
>> integration patterns, either through the servicemix-eip component or
>> even better, through Camel.  You can e.g. use a multicast to send the
>> same information (username and password) to multiple endpoints and
>> then aggregate the responses into a single reponse.
>>
>> Just so I understand the question correctly: what should happen with
>> the response from the first webservice call?  Should it be used in the
>> second service or in the response of originating request or where does
>> it go?
>>
>> Regards,
>>
>> Gert Vanthienen
>> ------------------------
>> Open Source SOA: http://fusesource.com
>> Blog: http://gertvanthienen.blogspot.com/
>>
>>
>>
>> 2009/2/18 MrNinni <[email protected]>:
>>>
>>> Hi,
>>> I have one problem; this is the scenario:
>>> The http-consumer is connected at one client which sends username and
>>> password.
>>> The soap message arrived in the ServiceMix, that redirect it at the
>>> http-provider. It sends the soap message (with username and password) at
>>> one
>>> WebService, and it returns the identity. After the WS1 response, the
>>> username and the password, which the SMX has memorized into itself, goes
>>> at
>>> the second WS.
>>> How I can memorize the username and password into the ServiceMix? I
>>> wouldn't
>>> use a external db.
>>> I'm sorry for my bad English.
>>> Thank you.
>>> --
>>> View this message in context:
>>> http://www.nabble.com/how-memorize-one-variable-into-the-servicemix-tp22080988p22080988.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>> -----
>> ---
>> Gert Vanthienen
>> http://gertvanthienen.blogspot.com
>>
>
> --
> View this message in context: 
> http://www.nabble.com/how-memorize-one-variable-into-the-servicemix-tp22080988p22198460.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to