Working with the autodiscovery feature

The autodiscovery configuration File enables you to define assets that need to be imported into the context of your Studio project.

Many enterprises have existing software assets (interfaces and schemas) that they need to use within the context of the fabric. The purpose of the autodiscovery feature in WebSphere® Business Services Fabric environment is to make it easy to import these resources into the Business Services Repository (BSR).

You must provide a configuration file that identifies directories or data feeds where existing resources can be found. The system then enables you to select a source, and the type of content you need to import.

Autodiscovery configuration file

This file is a run-time file that exists in the Business Services Composition Studio plugin directory ("autodiscovery.xml" in com.webify.wsf.studio.core). The path is WORKSPACE_DIR/.metadata/com.webify.wsf.studio.core/autodiscovery.xml

The two sources are <feed> and <directory>. The Feed source represents an RSS/Atom feed. The Directory source represents a local folder containing the WSDL (file extensions must be .WSDL).

Note: If a name is not specified for the <directory> element, the system uses folder as the name.

Code for the configuration file

<autodiscovery>
    <sources>
        <feed name="WSF UDDI" url="http://www.whereitis.com/rss" />
        <directory name="Local file system" folder="d:/somewhere/out/there" recursive="true" />
    </sources>
</autodiscovery>