Jun 5th, 2007, 10:09 PM
xfire, exporting only desired service methods
If this is the wrong forum for discussing xfire, please let me know.
I am trying to use the org.codehaus.xfire.spring.remoting.XFireExporter to export the methods of a particular interface as webservices. The problem is that the serviceBean is being imported from a component library that implements an interface containing a superset of the methods I want to make available.
For example, the component interface declares:
but I only want to export getNames.
At first I tried creating and exporting an interface with only the methods I wanted available, but of course the serviceBeans I am importing do not implement my new interface, so that doesn't work. I thought about trying to limit what methods are exported via aegis (or equivalent), but this jira shot that idea down: http://jira.codehaus.org/browse/XFIRE-165
Am I going to need a tighter coupling between my service beans and my xfire webservices? The original idea was to make the service beans a component I could include in either a standard web application or separately export as a webservice.