OnlineServices Component Configuration

In this section:

When the OnlineServices component starts, it looks in the configuration folder for all files with a .online extension. The component tries to start the services defined inside the files.

The service configuration file may contain several serviceReference elements defining various services. All services described in a .online file must be started or stopped. In case of a configuration error in one of the services, the service will not start and therefore other services will not start.

Example:

<?xml version='1.0' encoding='UTF-8'?>
<ServiceConfig>
  <services>
        <serviceReference name="MyService" configFile="MyService.plan">
          <input class="cz.adastra.cif.online.config.HttpInputMethod"
            location="/MyService">
            <format ...>
              ...
            </format>
          </input>
          <outputs>
            <output class="cz.adastra.cif.online.config.HttpOutputMethod">
              <format ...>
                ...
              </format>
        </output>
        ...
      </outputs>
    </serviceReference>
  </services>
</ServiceConfig>

Top of page

x
ServiceReference Element

Every service is defined in the ServiceReference element with the following parameters:

The Input method configuration is defined by the input element. It always defines the method (with the parameter class) that is used for the input. Depending on the method format of the input request, it defines characteristics such as the deployment location.


Top of page

x
Input and Output Methods

Input and output requests are almost the same. Therefore, the same configuration elements are reused. They may differ only in the fact that some parameters are mandatory when they are used for the input, and they are meaningless when used for the output.

You can use the following input/output methods in the serviceReference configuration. The method used is defined by the value of the class parameter.

You can set the following values in the class attribute:


Top of page

x
HttpInputMethod/HttpOutputMethod

HttpMethod means that the HTTP protocol is used. It can be used in the input as well as in the output definition. In order for you to use the HttpMethod, the HttpDispatcher component, which works as a router between services registered in the dispatcher, must be running.

HttpInputMethod/HttpOutputMethod have the following two parameters:


iWay Software