Here's how ContentEnricher works on SM EIP:
actually it is similar to pipeline but the response from transformation
service is concatenated with the original request like:
<root><orinalRequest>originalMessageContent</originalRequest><tranformerResponse>transformerResponse</transformerResponse>
</root>
(you can customize this tag by CE properties).
Most propably you'll need to do XSLT after that (so CE alone rarely gives
you all what you want).

As for the token service you don't need to write a bean to call it. The
easiest way to call external service is to use CXF Provider (or HTTP
provider if you don't use SOAP).

regards
Lukasz


JMan_JE wrote:
> 
> Hi,
> 
> I need to enrich a message sent to a web service with a security token.
> This token is obtained by calling another webservice first.
> So, in theory i have to enrich the actual message with the token, but
> how can i do that using eip (either camel or smx)? Is there an easy way?
> I do not want to write a java bean that is responsible for calling the
> token service or something like that. I could do it via a bpel process,
> but that
>  looks kind of overkill to me. So, can someone point me in the right
> direction?
> 
> cheers, Johannes
> 
> 

-- 
View this message in context: 
http://www.nabble.com/BPEL-vs-ContentEnricher-Pattern-tp19810402p19834410.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to