ExternalXmlDataSource

Top  Previous  Next

With ExternalXmlDataSource the XML sources on the network can be accessed easily. The XML document retrieved by the data source can be transformed using an XSL stylesheet.

The retrieved and transformed data is kept as XML string (without parsing) in the ADOM of the data source.

externalxmldatasrc

Properties

Scope (Accepts MScript)

Defines where the data provided by the data source is stored in memory. The valid values are "Request", "Session" and "Application".

Refresh Timeout (Accepts MScript)

Defines duration that the data provided by the data source is valid. After this duration expires a new data is fetched from the data service.

Url (Accepts MScript)

The URL of the XML source.

Example:

http://www.tcmb.gov.tr/kurlar/today.xml

Method (Accepts MScript)

The Http method to used when making the request to the XML source.

Request Parameters (Accepts MScript)

The parameter of the request

User Name (Accepts MScript)

A user name basic authentication is required to access to the XML source.

Password (Accepts MScript)

The password of the user if applicable.

Transformation File (Xsl) (Accepts MScript)

The XML file retrieved from the XML service can be transformed into another XML document, if a XSL stylesheet is specified in this property.

Execution Precondition

An MScript expression as the precondition of the data source. If no expression is defined then data source is invoked always, but if an expression is specified here, the data source is invoked only if the result of the expression evaluation is true.

Examples:

ID != ''
(COUNTER > 0) AND (NAME != '')

 

Check Point

The usage of the data source defined with this element can be controlled with this property. If a check point name is defined here then only the users that has the authority to pass through it can access the data provided by the data source.

Examples:

IS_SYS_ADM

IS_LOGGED_IN