Registering a Web Service

Each web service for which outbound connectors should be generated must be registered. Registration is a simple process of updating the following file:

<SERVER_DIR>/project/config/webservices_config.xml.

The sample webservices_config.xml shown in Registering a Web Service below illustrates how to register a web service:

Figure 1. Sample webservices_config.xml
<services>
  <service
   location=
     "components/<component_name>/wsdl/some_service/TopLevel.wsdl"
  />
</services>

The location attribute represents the location of the WSDL file relative to the <SERVER_DIR> directory. Where the WSDL definition is spread over several files in a hierarchical structure, the web service is registered by referencing the top level WSDL definition file in the webservices_config.xml file.

This registration process also provides the ability to turn a particular web service connector on and off (bearing in mind that business code that accesses the connector would obviously be affected by this), by simply adding or removing the entry as required and rebuilding.

The empty webservices_config.xml file shown in Registering a Web Service below is also valid:

Figure 2. An empty webservices_config.xml
<services>
  </services>
Note: If your project does not have a <SERVER_DIR>/project/config/webservices_config.xml file, you may create one by following the structure shown above.