Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
<endpoint> Element

<endpoint> Element

Defines the policy to use for SOAP messages that are sent to or received by a Web service.

<policyDocument> Element
  <mappings> Element

<endpoint uri="endpoint's URL" >
  <operation requestAction="SOAP action" />
  <defaultOperation />


Attribute Description


Required attribute. Specifies the URL of the Web service to which this policy is being mapped.

Child Elements

Element Description

<operation> Element

Optional element. Specifies the WSDL operation, also known as a Web service method, to which the policy is applied for the specified Web service.

<defaultOperation> Element

Optional element. Specifies the default policy for all operations at the URI specified in the uri attribute.

Parent Elements

Element Description

<mappings> Element

Defines the mappings between policy assertions and endpoints.

There can be zero or more <endpoint> elements within the <mappings> Element element. Each <endpoint> element specifies the policy for the <to> element in the WS-Addressing SOAP header. Use the <defaultOperation> Element element to apply a policy to all the WSDL operations for a Web service.

The following code example defines a policy assertion named signed-body-x509 that requires the digital signing of the <Body> element, timestamp header, and all addressing headers by an X509SecurityToken and requires that SOAP messages adhere to the policy assertion if they are sent to the http://www.cohowinery.com/Service1.asmx endpoint.

This code example is designed to demonstrate WSE features and is not intended for production use.

<?xml version="1.0" encoding="utf-8"?>
<policyDocument xmlns="http://schemas.microsoft.com/wse/2003/06/Policy">
    <endpoint uri="http://www.cohowinery.com/Service2.asmx">
        <request policy="#signed-body-x509" />
        <response policy="" />
        <fault policy="" />
  <policies xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    <!--This policy requires that the body be digitally signed by an X509
         security token.-->
    <wsp:Policy wsu:Id="signed-body-x509">
      <wssp:Integrity wsp:Usage="wsp:Required">
        <wssp:MessageParts xmlns:rp="http://schemas.xmlsoap.org/rp" Dialect="http://schemas.xmlsoap.org/2002/12/wsse#part">wsp:Body() wse:Timestamp() wse:Addressing()</wssp:MessageParts>
© 2015 Microsoft