Hi Matteo,
There are several ways to do it in CXF for remote services.
1. You can write generic service (proxy) using Provider<> interface that
accepts all incoming SOAP messages.
Implementation of this service will resolve target endpoint (normally based
on some message properties) and invoke target remote service using generic
Dispatch<> client.
2. Another way is to replace default client conduit selector with custom one.
When client sends a message, custom conduit selector will be activated. It
resolves target endpoint and transparently redirect call to the target service.
I can provide you a sample code for both options.
Regards,
Andrei.
-----Original Message-----
From: matteo [mailto:[email protected]]
Sent: 24 August 2012 13:19
To: [email protected]
Subject: CXF Service Routing to Remote Server
Hello Everybody,
I already use CXF service routing capabilities, as explained in
cxf.apache.org/docs/service-routing.html. However, now I would like to redirect
the WS invocation toward an endpoint that is published on another
(remote) server. In this case, I can nolonger invoke the
MessageObserver mo = targetServer.getMessageObserver();
mo.onMessage(message);
as explained in the example.
I would like to perform redirection with CXF only (no apache camel routing).
I'm adopting a java first approach and I configure cxf programmatically (no xml
files).
Could anyone suggest me an example or share a hint?
Thank you!
matteo
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-Service-Routing-to-Remote-Server-tp5713087.html
Sent from the cxf-user mailing list archive at Nabble.com.