OData Resource (Magic xpi 4.9)
OData resources contain the following parameter (a parameter in bold is mandatory):
|
|
Root URL
|
The OData service root URL.
Enter the required root URL or click to open the Environment Variables List. Here, you can select an environment variable to use as a root URL.
|
Metadata Headers
|
The HTTP headers for retrieving the OData service’s metadata. Click the Headers button (below) to enter the required HTTP header information.
|
This field is applicable only in the resource and is not used during runtime.
|
|
Authentication Type
|
This is a combo-box. Select the required authentication type from the drop-down list.
-
None (default)
-
Basic
-
Digest
-
Windows
(Since version: 4.7.2)
|
User
|
The username for authenticating the OData resource.
You can either enter the user name, or click to open the Environment Variables List. Here, you can select an environment variable to use as a user name.
|
Password
|
The password for authenticating the OData resource.
You can either enter the password, or click to open the Environment Variables List. Here, you can select an environment variable to use as a password.
|
A password entered as an environment variable is masked by asterisks.
|
|
Workstation
|
The workstation name of the computer originating the request.
This is available only if you select Windows in the Authentication Type parameter (above).
|
Domain
|
The domain used for authenticating the OData resource.
This is available only if you select Windows in the Authentication Type parameter (above).
|
OData resources also give you the following buttons:
|
|
Get Metadata
|
Click this button to retrieve the OData service’s metadata.
|
If the OData Service is running on the Cloud, then in order to fetch the OData service’s metadata, TLS 1.2 related settings must be configured. To do this make sure that your .NET framework is configured to support TLS 1.2.
.NET 4.0 does not enable TLS 1.2 by default. To enable TLS 1.2 by default perform the following steps:
In the following two registry keys, set the SchUseStrongCrypto DWORD value to 1:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319.
|
|
Entities
|
Click this button to open the Entity List. Here, you select the required OData entities. Prior to selecting the entities, you need to retrieve the metadata by clicking the Get Metadata button (above).
|
Headers
|
Click this button to open the Headers dialog box. Here, you can provide HTTP headers for retrieving the OData service’s metadata. The headers should be entered as key value pairs, with a line break between the pairs. For example:
Authorization: Bearer TXkgQWNjZXNzIFRva2Vu Accept: application/json
|