com.WebService.setFeature

Defines a feature for the current Web Service object.

Syntax

setFeature(
   name STRING,
   value STRING )
  1. name is the name of the Web Service feature.
  2. value is the value of the feature.

Usage

The setFeature() method defines a feature for the current Web Service object by specifying a feature name and a value.

The features names are predefined. The second parameter must a a valid value for the specified feature.

Table 1. Support Web Service features for the setFeature() method
Name Description
Soap1.1 Defines whether the Web Service supports the SOAP 1.1 protocol. Default value is FALSE.
Soap1.2 Defines whether the Web Service supports the SOAP 1.2 protocol. Default value is FALSE.
WS-Addressing1.0

Defines whether the Web Service supports WS-Addressing 1.0. Valid values include:

  • TRUE - The service supports WS-Addressing 1.0 and accepts requests without WS-Addressing.
  • REQUIRED - The service supports WS-Addressing 1.0 and accepts only requests with WS-Addressing.
  • FALSE - WS-Addressing 1.0 is disabled (Default).

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).