On Sep 18, 2012, at 9:46 AM, rouble <[email protected]> wrote:

> CXFers,
> 
> Is there a way to forward a message to a *remote* web service?
> 
> Similar to what is done here:
> http://cxf.apache.org/docs/service-routing.html, but I am interested
> in forwarding the message off box to a remote web service from the
> interceptor.
> 
> I noticed that there is a documented way to do this using camel:
> http://camel.apache.org/cxf-proxy-example.html... but I am interested in
> doing it using just CXF and interceptors.

Does it need to be done via an interceptor?

The easiest way to handle this with "Pure" cxf would be to write an endpoint 
using a Provider interface.   Something like:

MyService extends Provider<Source> {

    public Source invoke(Source s) {
          …  use a Dispatch<Source> client to send the Source to a new endpoint 
...
    }
}


-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


Reply via email to