Share via


Policy File Schema

The following is the XML schema for policy files supported by the Web Services Enhancements for Microsoft .NET (WSE).

<?xml version="1.0" encoding="utf-8" ?>

<policies> Element

  <extensions> Element

    <extension> Element

  </extensions>

  <policy> Element

    <authorization> Element

      <allow> Element (Policy)

      <deny> Element (Policy)

    </authorization>

    <anonymousForCertificateSecurity> Element

      <serviceToken> Element (Policy)

        <x509> Element (Policy)

      </serviceToken>

      <protection> Element

        <request> Element

        <response> Element

        <fault> Element

      </protection>

    </anonymousForCertificateSecurity>

    <kerberosSecurity> Element

      <token> Element

        <kerberos> Element

      </token>

      <protection> Element

        <request> Element

        <response> Element

        <fault> Element

      </protection>

    </kerberosSecurity>

    <mutualCertificate10Security> Element

      <clientToken> Element

        <x509> Element (Policy)

      </clientToken>

      <serviceToken> Element (Policy)

        <x509> Element (Policy)

      </serviceToken>

      <protection> Element

        <request> Element

          <signedHeader> Element

        <response> Element

        <fault> Element

      </protection>

      </ mutualCertificate10Security>

    <mutualCertificate11Security> Element

      <clientToken> Element

        <x509> Element (Policy)

      </clientToken>

      <serviceToken> Element (Policy)

        <x509> Element (Policy)

      </serviceToken>

      <protection> Element

        <request> Element

        <response> Element

        <fault> Element

      </protection>

    </mutualCertificate11Security>

    <requireActionHeader> Element

    <requireSoapHeader> Element

    <usernameForCertificateSecurity> Element

      <clientToken> Element

        <username> Element

      </clientToken>

      <serviceToken> Element (Policy)

        <x509> Element (Policy)

      </serviceToken>

      <protection> Element

        <request> Element

        <response> Element

        <fault> Element

      </protection>

    </usernameForCertificateSecurity>

    <usernameOverTransportSecurity> Element

      <clientToken> Element

        <username> Element

      </clientToken>

    </usernameOverTransportSecurity>

  </policy>

</policies>

See Also

Tasks

How to: Secure a Web Service Using a Policy File
How to: Secure a Client Using a Policy File