Search

GlobalSCAPE Knowledge Base

Add Context Variables and Values to Web Services XML Response

Karla Marsh
EFT

THE INFORMATION IN THIS ARTICLE APPLIES TO:

  • EFT v7.4.11 and later

DISCUSSION

In EFT Enterprise, the Web Service allows you to initiate an Event Rule from an external application, such as an enterprise scheduler. After the Event Rule finishes dispatching, the Web service responds with an XML document that consists of a single "Result" element. Creating the registry setting below will modify the original response to add context variables that are in the XML document, from which you can then parse out values with another application.

EFT v8.0 and later store Advanced Properties in a JSON file. When you upgrade from EFT v7.4.x to EFT v8, the non-default settings that you have defined in the registry will be added to the Advanced Properties file during upgrade. (Default settings become part of the EFT configuration files.) For a more on how to use advanced properties, and a spreadsheet of the advanced properties, please refer to the "Advanced Properties" topic in the help for your version of EFT.

Setting the value to true with context variables will add the EFT context variables to Event Rule Web services response.

In EFT v8 and later:

Add the name:value pair to the AdvancedProperties.JSON file in EFT's \ProgramData\ directory.

{
"EventWebServiceResponseAddContextVariables": false
}

 false = default;

true = add context variables to Invoke Web Services result

In versions prior to v8.0:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\GlobalSCAPE Inc.\EFT Server 7.4\

Values: 0 = default; 1 = add context variables to Invoke Web Services result

NameEventWebServiceResponseAddContextVariables

Values: false = default; true = add context variables to Invoke Web Services result

Restart Required: yes

Backup/Restore: yes

For more information and some scripts to test it, refer to the "Enabling and Using Web Services" topic in the help for your version of EFT.

Details
Last Modified: 8 Months Ago
Last Modified By: kmarsh
Type: HOTFIX
Rated 2 stars based on 2 votes.
Article has been viewed 24K times.
Options
Also In This Category
Tags