Skip to content

Service finder strategies reference

mkalam-alami edited this page Jan 17, 2012 · 7 revisions

Service finder strategies reference

The Discovery by Browsing tool uses what we call the "service finder" to find services. The service finder is a REST service hosted in Nuxeo (the service registry) which tries to find as much information as possible on web services given an URL.

Default 'strategies'

The service finder combines several ways to find services the given URL. Each approach is registered as a "strategy", and anyone can contribute more of them. The default ones are:

  • DirectAccessStrategy: Finds a service if the given URL is a WSDL.
  • ScrapingStrategy: Finds services if the given URL contains HTML links to WSDLs.
  • ContextStrategy (currently mocked): Tries to recognize an application among a bank of known apps, then directly extract data from the service list page, if a such page exists.

Contributing new strategies

All strategies must:

  • Implement the org.easysoa.rest.servicefinder.ServiceFinderStrategy class
  • Be stored in a Nuxeo bundle (learn about them on this page.), and registered by an XML contribution to the strategies extension point of ServiceFinderComponent. Note that unless you directly work in the org.easysoa.registry.rest bundle, yours will have to require org.easysoa.registry.rest.
Clone this wiki locally