Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:2500_config_apps:2000_add_edit_services [2026/07/07 05:33] – aware_admin | docs:2500_config_apps:2000_add_edit_services [2026/07/07 07:32] (current) – aware_admin | ||
|---|---|---|---|
| Line 26: | Line 26: | ||
| ===== Service Will be Protected by OAuth2.0 Protocol ===== | ===== Service Will be Protected by OAuth2.0 Protocol ===== | ||
| - | Tick this checkbox if you want to protect a service. If at least one service should be protected, you will need to deploy a special web application. This web application will manage scopes, clients, will issue access tokens and refresh tokens. | + | Tick this checkbox if you want to protect a service. If at least one service should be protected, you will need to deploy a special web application. This web application will manage scopes, clients, will issue access tokens and refresh tokens. |
| - | - Go to the Edit menu of the Configuration Tool | + | |
| - | - Select the entry with the name " | + | |
| - | Note that thew deployment of the dynamic feature should only be done once | + | |
| - | + | ||
| - | Your service documentation needs to convey to the callers of the service that before calling the service, they need to do the following: | + | |
| - | - Obtain an access token by cand | + | |
| - | - include the access token in the Authorization Bearer HTTP header, for example (< | + | |
| - | - The name of the business space must be in the HTTP header called AW-DOMAIN, for example < | + | |
| - | - The name of the service to call must be in the header called AW-SERVICE for a REST-ful service (for example, < | + | |
| ===== Service Reply ===== | ===== Service Reply ===== | ||
| Line 59: | Line 50: | ||
| - for SOAP Service call: < | - for SOAP Service call: < | ||
| - | <callout type=" | + | <callout type=" |
| + | |||
| + | ==== Reply Format ==== | ||
| + | |||
| + | If a REST-ful service returns a reply, it can be either in the XML format (also Default) or in JSON format. The format can also vary depending on the URL used – the extension of the expected format can be specified in the URL itself. Choose the appropriate option here. A reply can also be just a string calculated by the process implementing the service. If that is the case, choose the " | ||
| + | |||
| + | For SOAP services reply format is always XML. | ||
| + | |||
| + | ==== Handing of Undefined Values ==== | ||
| + | |||
| + | If values of the attributes of the returned object are undefined, you can choose how // | ||
| + | |||
| + | ===== Editing service properties in the Property Window ===== | ||
| The following properties can be specified in the Element Properties window: | The following properties can be specified in the Element Properties window: | ||
| Line 70: | Line 73: | ||
| - The name must start with a character or underscore symbol; all other symbols must be characters (including underscore symbol) or digits. Space symbols are not allowed. | - The name must start with a character or underscore symbol; all other symbols must be characters (including underscore symbol) or digits. Space symbols are not allowed. | ||
| - | |||
| ===== Description ===== | ===== Description ===== | ||
| Specify any text that describes what the services does etc. Providing a description is not mandatory but is highly recommended. Any description if defined is included into the generated documentation for the business space version – see [[docs: | Specify any text that describes what the services does etc. Providing a description is not mandatory but is highly recommended. Any description if defined is included into the generated documentation for the business space version – see [[docs: | ||
| - | ===== Log ===== | + | ===== Service |
| - | If you tick the Save button AwareIM | + | If you click on this property, |
| - | It will also record HTTP headers of the request and response. The log will be captured in the instance of the object that you specify (you also need to define the attributes in this object that will store the log, as well as the attribute storing the name of the service and timestamp (the latter two attributes are required, so that you can sort by time and service. | + | |
| - | ===== REST settings ===== | + | |
| - | If you ticked “Rest support” checkbox | + | ===== Handling of HTTP headers ===== |
| + | Values of HTTP headers of each service call can be stored | ||
| - | ==== Default URL mapping ==== | ||
| - | |||
| - | Services exposed as REST will be called by other parties using a particular URL. If you choose the default option the default URL the other parties will have to use the default URL. It has the following format: | ||
| - | |||
| - | http:// | ||
| - | |||
| - | for example: | ||
| - | |||
| - | [[http:// | ||
| - | |||
| - | ==== URL must contain string ==== | ||
| - | |||
| - | If default URL cannot be used you can construct your own URL by choosing this option and providing your own custom string. For example, if you provide the following string: | ||
| - | |||
| - | someName1/ | ||
| - | |||
| - | the following URL can be used: | ||
| - | |||
| - | http:// | ||
| - | |||
| - | <callout type=" | ||
| ==== Name mapping ==== | ==== Name mapping ==== | ||
| If your REST-ful service is implemented by a process that takes some object as input (should only be one object) then values of attributes of this object have to be provided as parameters in the URL (see example above). The name of the parameters must match the names of the attributes of the object. If this, however, is impossible for whatever reason, then you need to provide a mapping between the names of the parameters (“External Name”) and the name of the corresponding attribute. You should only do it for those parameters that have different names to the names of the attributes. | If your REST-ful service is implemented by a process that takes some object as input (should only be one object) then values of attributes of this object have to be provided as parameters in the URL (see example above). The name of the parameters must match the names of the attributes of the object. If this, however, is impossible for whatever reason, then you need to provide a mapping between the names of the parameters (“External Name”) and the name of the corresponding attribute. You should only do it for those parameters that have different names to the names of the attributes. | ||
| - | |||
| - | ==== Reply Format ==== | ||
| - | |||
| - | If a service returns a reply it can be either in the XML format (also Default) or in JSON format. The format can also vary depending on the URL used – the extension of the expected format can be specified in the URL itself. Choose the appropriate option here. | ||
| - | |||
| - | ==== REST Handing of Undefined Values ==== | ||
| - | |||
| - | This only applies to services exposed as REST-ful services. If values of the attributes of the returned object are undefined, you can choose how // | ||