Our XFire project used a spring-provided configuration to retrieve a "local"
service for JUnit-based testing (using Spring's transactional injection test
class as a base).
The code that accesses the service looks like this:
String name = "someServiceName";
XFire xfire = (XFire) applicationContext.getBean("xfire");
ServiceRegistry serviceRegistry = xfire.getServiceRegistry();
Service service = serviceRegistry.getService(name);
XFireProxyFactory factory = new XFireProxyFactory(xfire);
return (WebServiceBase) factory.create(service, "xfire.local://" +
name);
Another developer on the project wrote this but he's on vacation, so I can't
pick his brain. I'm pretty sure he dug it up from some XFire sample
somewhere.
Is there a CXF equivalent? I see something about a "local://*" mechanism
but I'm not sure how to make that work without modifying the configuration
to add another :endpoint as shown in the CXF docs.
Suggestions? Thanks. :)
--
View this message in context:
http://www.nabble.com/XFire-%3ECXF%2C-%22Local%22-client-tp14603026p14603026.html
Sent from the cxf-user mailing list archive at Nabble.com.