An XML Adapter communicates with an external data source using an XML endpoint over the HTTP protocol.
To configure a XML service in Integration service definition tab, follow these steps:
Note: XML is selected, by default.
Fields | Description |
---|---|
Version | Specify the version number for the service. |
Base URL | Type the URL. |
Web Service Authentication | Select one of the following modes:
|
Identity Service for Backend Token | Select the Identity service associated with your app if this service needs backend token like access_token from that Identity service to access the backend server. |
Field | Description |
---|---|
Specify JAR | To specify a JAR associated to the service, select one from the Select Existing JAR list or click Upload New to add a new JAR file. Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration. You can download the uploaded jars to your local system. |
API Throttling |
|
URL Provider Class | Enter the qualified name of the URL Provider Class. For more information, refer URL Provider Support for XML, JSON, SOAP, and API Proxy. |
Note: All options in the Advanced section are optional.
The Operations List tab appears only after the service definition is saved.
Note: Click Operations List tab > Configure Operation. The Configured Operations list appears.
To create an operation, follow these steps:
Note: To use an existing integration service, refer to How to Use an Existing Integration Service.
Field | Description |
---|---|
Name | Type a new name for the operation in the Operation Name box. Important: While configuring an integration service with basic auth mode, ensure that some reserved IDs are not used as input (or) header IDs. Key words such as userID and password are reserved by middleware when a user selects basic auth mode. |
Operation Security Level | It specifies how a client must authenticate to invoke this operation. Select one of the following security operations in the Operation Security Level field.
Note: The field is set to Authenticated App User, by default. |
Target URL | You can select which HTTP method to invoke on the back-end service from integration server. The Target URL field is pre-populated with the URL. You can add the suffix, if required. http://baseurl.com/suffix For Example, to the base URL, you can add suffix such as
|
Target HTTP Method | You can select which HTTP method to invoke on the back-end service from integration server. Select the required method for the operation from the Target HTTP Method field. |
Custom Code Invocation | You can add pre and post processing logic to services to modify the request inputs. When you test, the services details of various stages in the service execution are presented to you for better debugging. All options in the Advanced section are optional. For more details, refer to Preprocessor and Postprocessor. |
Stub Backend Response |
Stub Backend Response allows you enable a stub back-end service. To enable Stub Backend Response, refer How to Enable Stub Back-end Response. For more details on Stub back-end response, refer to How to Develop Apps based on a Stubbed Service. |
Additional Configuration Properties | Additional Configuration Properties allows you to configure service call time out cache response. For information on different types of configuration properties, refer Properties. |
Front-end API | Front-end API allows you map your endpoint (or) backend URL of an operation to a front-end URL. For detailed information, refer Custom Front-end URL. |
Pass-through Cookies | Pass-through Cookies allows you send cookies present in the incoming client request to the backend target request. For detailed information, refer Pass-through Cookies. |
Server Events | Using Server Events you can configure this service to trigger or process server side events. For detailed information, refer Server Events. |
Note: All options in the Advanced section for operations are optional.
Integration services accept only form-url-encoded
inputs for all input parameters provided in service input parameters (request input).
You can perform the following actions in Request Input tab:
Field | Description |
---|---|
Name | Enter the name for the request input parameter. |
Value | Three different options are available in Kony Fabric under VALUE during configuration of any operation. When you start editing this field, dependent identity services are auto populated. These options primarily determine the source of the value of the header. Select request or session or Identity.
Note: The field is set to Request, by default. |
TEST VALUE | Enter a value. A test value is used for testing the service. |
DEFAULT VALUE | Enter the value, if required. The default value will be used if the test value is empty. |
Scope | Select request or session. This field is set to Request, by default. |
DATA TYPE | The default data type for the selected column is loaded under the DATA TYPE field. |
Encode | Select the checkbox to enable an input parameter to be encoded. For example, the name New York Times would be encoded as New%20York%20Times when the encoding is set to True. The encoding must also adhere the HTML URL encoding standards. |
Description | Enter the description for the Request Input parameter. |
You must provide the custom HTTP headers based on the operation. For example, post or get.
Perform the following actions to provide the custom header
Field | Description |
---|---|
Name | Provide custom HTTP headers required by the external source. |
Value | Three different options are available in Kony Fabric under VALUE during configuration of any operation. When you start editing this field, dependent identity services are auto populated. These options primarily determine the source of the value of the header. Select Request or Session or Identity.
Note: The field is set to Request, by default. Note: If the header value is scoped as a Request (or) Session and the same header is accessed under the Expression header value, then the expression must be represented as $request.header (or) $session.header. |
TEST VALUE | Enter a value. A test value is used for testing the service. |
DEFAULT VALUE | Change the syntax, if required. The default value will be used if the test value is empty. |
Description | Enter the description for the header parameter. |
Click Response Output tab to configure the fields of the table for displaying the data.
Note: If you define parameters inside a record as the session, the session scope will not get reflected for the parameters.
Note: Auto generation of XPath support is available from Kony Fabric V8 SP3 onwards.
The following table details XPath generation:
To create XPath automatically (SP4) | To create XPath manually |
---|---|
|
|
Important: If the back-end for an XML service provides the date in a specific format and you want send the date in a different format to a device, you can configure the data format and FormatValue ( syntax : inputDateFormat~outputDateFormat
) in the response tab.
For example, if a back-end sends the date as Thu, 07 Sep 2017 07:03:00 GMT
and you want convert it to 2017-09-07T07:03:00.000+0000
, then set the format value as EEE, dd MMM yyyy HH:mm:ss z~yyyy-MM-dd'T'HH:mm:ss.SSSZ
.
For more details on the syntax of the date formats, referhttps://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
Note: When you enable Pass-through proxy flags, you will notice that you cannot configure request input, headers, and response out parameters for this operation.
To validate the operation details, click Save and Test. For more details, refer to Test a Service Operation.
To use an existing integration service, refer to How to Use an Existing Integration Service.
Note: You can view the service in the Data Panel feature of Kony Visualizer. By using the Data Panel, you can link back-end data services to your application UI elements seamlessly with low-code to no code. For more information on Data Panel, click here.
Copyright © 2020 Kony, Inc. All rights reserved. |