第十六章 WS-Policy 配置类详细信息 - 自定义配置示例
自定义配置示例
本节提供了一些自定义配置类的示例。
策略备选配置
以下配置类包括两种策略选择:使用 WS-Addressing 标头或不使用。
/// PolicyAlternatives.DivideWSConfig
Class PolicyAlternatives.DivideWSConfig Extends %SOAP.Configuration
{
XData service
{
<cfg:configuration xmlns:cfg="http://www.intersystems.com/configuration"
xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"
xmlns:wsap="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:wsp="http://www.w3.org/ns/ws-policy"
name="service">
<cfg:service classname="PolicyAlternatives.DivideWS">
<wsp:Policy>
<wsp:ExactlyOne>
<wsp:All>.png)
