<policy> Element (WSE for Microsoft .NET) (2)
Controls the policy settings for a WSE application.
<microsoft.web.services2> Element
<policy >
<cache name="policy file"/>
<assertion name="XML qualified name"
type="custom policy assertion type"/?
</policy>
Attributes and Elements
Attributes
None
Child Elements
Element | Description |
---|---|
Optional element. Specifies the file containing the policy assertions for an application. |
|
Optional element. Specifies a user supplied custom policy assertion. |
Parent Elements
Element | Description |
---|---|
Controls the configuration options defined by WSE. |
Remarks
Before adding the <policy> element to a configuration file, you must add the microsoft.web.services2 configuration section handler to the configuration file. For details about adding the microsoft.web.services2 configuration section handler, see <section> Element (WSE for Microsoft .NET).
Example
The following code example specifies the policy file for receive side policy is the ReceivePolicies.xml
file in the current directory.
<configuration>
<microsoft.web.services2>
<policy>
<cache name="Policies.config"/>
</policy>
</microsoft.web.services2>
</configuration>
See Also
Reference
<cache> Element for <policy>
<assertion> Element