2.5.9 <Policy>

References one Web Service Policy file applied to one of the following two levels:

At most, 10 Web Service policies can be referenced for each object.

Table 2-7 Policy Attributes

Attribute Description Required
location Specifies the local file path for the referenced WS-Policy file. This attribute value may contain a maximum of 256 characters (excluding the terminating NULL character).

Specifically, SALT pre-defines WS-Policy template files for typical WS-* scenarios. These files can be found under the $TUXDIR/udataobj/salt/policy directory. You can reference these template files using the string format “salt:<template_file_name>”.

For example, if you want to reference SALT WS-SecurityPolicy 1.0 template file “wssp1.0-signbody.xml”, you should define the following XML snippet in the WSDF file:

<Policy location=”salt:wssp1.0-signbody.xml” />

Yes
use Specifies if the WS-Policy file is applied to the input message, output message, fault message, or the combination of the three. If multiple messages are set, use a space as the delimiter.

For example, if you want to configure a WS-Policy file “mypolicy.xml” to be applied to “input” and “output” messages, you should define the following XML snippet in the WSDF file:

<Policy location=”mypolicy.xml” use=”input output”/>

SALT limits the applicable messages for each supported WS-Policy assertion.

For more information, see the following sections:
No