I'm trying to figure out if the ESB/WS stack will support service virtualization. As an example if a service producer (producer.com) has a simple stock quote WSDL can they give the WSDL to me (foo.com) and through the esb stack I can virtualize the service. So a consumer looking for a stock quote service can see that i have one (consumer.com\simplestockquote.wsdl) but when they execute the wsdl the messages are really being forwarded to (publisher.com\simplestock.wsdl).
I know it's sort of a simple thing to define a different URI but a message interceptor needs to manage this and do the routing accordingly....
I believe you're asking how to route a message between two CXF endpoints. If so, there are docs for an example that comes with Apache Camel on how to do exactly this available here:
Take a look at that to see if it addresses your question and let us know by responding here.
While it is possible to use cxf for routing, a simpler and more natural solution is to use the FUSE Mediation Router based on Apache Camel for that (http://open.iona.com/products/fuse-mediation-router/)
As an example please check http://activemq.apache.org/camel/cxf-example.html.
I hope this helps
thanks - this is what i was looking for...