This documentation is for WSO2 Data Services Server 3.1.0. View the home page of the latest release.

Unknown macro: {next_previous_link3}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

You can set parameters to a service in two levels as follows:
  • Operation-Level : Parameters can be configured for a particular operation of a service. See Operation Management.
  • Service-LevelParameters can be configured for a particular service as described below.

Follow the instructions below to add and manage parameters to a service.

 

Service-level parameters 

 

  1. Log in to the management console and select Services > List from the Main menu.  
  2. The Deployed Services window appears. Click on the necessary service to access its dashboard.
  3. In the dashboard, under Quality of Service Configuration panel, click Parameters.
     
  4. You can define parameters inside the services.xml as an immediate child element of the service element. You can access parameters using the message context (at the runtime) or AxisService or AxisOperation. A parameter has two attributes:
    • name - The mandatory attribute which defines the parameter name.
    • locked - The optional attribute. The idea of a locked attribute is to express whether we allow the parameter value to be overridden by a child node in the hierarchy.

For example, if a parameter was added in the axis2.xml file setting the locked attribute to True, then if a service tries to add another parameter with the same name, it will give an exception.

The Service Management feature provides an easy method to generate the Service parameters. Click "Add New..." button to generate a new service parameter.


5. Enter the parameter name and click "OK" to add a parameter to the list.


6. Enter the parameter value and click on the "Update" button to save new parameters in the service group.


7. If you want to delete a parameter, click on the "Delete" button associated with it.


  • No labels