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" ?>

<policyDocument> Element xmlns="https://microsoft.com/wse/2003/06/Policy">

  <mappings> Element

    <endpoint> Element uri>

      <operation> Element requestAction>

        <request> Element (WSE for Microsoft .NET) policy />

        <response> Element (WSE for Microsoft .NET) policy />

        <fault> Element policy />

      </operation>

      <defaultOperation> Element

       <request> Element (WSE for Microsoft .NET) policy />

       <response> Element (WSE for Microsoft .NET) policy />

       <fault> Element policy />

      </defaultOperation>

    </endpoint>

    <defaultEndpoint> Element

      <operation> Element requestAction>

        <request> Element (WSE for Microsoft .NET) policy />

        <response> Element (WSE for Microsoft .NET) policy />

        <fault> Element policy />

      </operation>

      <defaultOperation> Element

        <request> Element (WSE for Microsoft .NET) policy />

        <response> Element (WSE for Microsoft .NET) policy />

        <fault> Element policy />

      </defaultOperation>

    </defaultEndpoint>

  </mappings>

  <policies> Element xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"

xmlns:wsp="https://schemas.xmlsoap.org/ws/2002/12/policy"

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

    <Policy> Element (WSE for Microsoft .NET) (1) wsu:Id>

xmlns:wsp="https://schemas.xmlsoap.org/ws/2002/12/policy"

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"

xmlns="https://schemas.xmlsoap.org/ws/2002/12/secext"

      <Integrity> Element wsp:Usage>

        <Algorithm> Element for <Integrity> Type URI wsp:Preference/>

        <TokenInfo> Element

          <SecurityToken> Element

            <Claims> Element

              <Role> Element value wse:xmlns="https://microsoft.com/wse/2002/12/policy"/>

              <ServiceName> Element />

              <SubjectName> Element />

              <UsePassword> Element Type wsp:Usage/>

              <BaseToken> Element

              <Parent> Element

              <IssuerToken> Element

</Claims>

            <TokenIssuer> Element (WSE for Microsoft .NET) (1) />

            <TokenType> Element />

          </SecurityToken>

        </TokenInfo>

        <MessageParts> Element for <Integrity> Element Dialect Signer />

      </Integrity>

      <Confidentiality> Element wsp:Usage>

        <Algorithm> Element for <Confidentiality> Type URI wsp:Preference/>

        <KeyInfo> Element (WSE for Microsoft .NET) (1)

          <SecurityToken> Element

            <Claims> Element

              <Role> Element value wse:xmlns="https://microsoft.com/wse/2002/12/policy"/>

              <ServiceName> Element />

              <SubjectName> Element />

              <UsePassword> Element Type wsp:Usage/>

              <BaseToken> Element

              <Parent> Element

              <IssuerToken> Element

            </Claims>

            <TokenIssuer> Element (WSE for Microsoft .NET) (1) />

            <TokenType> Element />

          </SecurityToken>

          <SecurityTokenReference> Element (WSE for Microsoft .NET) (1)

            <KeyIdentifier> Element (WSE for Microsoft .NET) (1) />

          </SecurityTokenReference>

        </KeyInfo>

        <MessageParts> Element for <Confidentiality> Element Dialect />

      </Confidentiality>

      <MessagePredicate> Element Dialect />

    </wsp:Policy>

  </policies>

</policyDocument>

See Also

Other Resources

Configuring a Web Service's Policy