Partager via


ReceiveSecurityFilter.ValidateMessageSecurity Method

When overridden in a derived class, validates that the specified SOAP message and Security SOAP header meet the security requirements enforced by this filter.

Namespace: Microsoft.Web.Services3.Security
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim envelope As SoapEnvelope
Dim security As Security
Dim receiveSecurityFilter1 As ReceiveSecurityFilter
receiveSecurityFilter1.ValidateMessageSecurity(envelope, security)

Syntax

'Declaration
Public MustOverride Sub ValidateMessageSecurity( _
    ByVal envelope As SoapEnvelope, _
    ByVal security As Security _
)
public abstract void ValidateMessageSecurity(
    SoapEnvelope envelope, 
    Security security
);
public:
virtual void ValidateMessageSecurity(
    SoapEnvelope^ envelope,
    Security^ security
) abstract;
public abstract void ValidateMessageSecurity(
    SoapEnvelope envelope, 
    Security security
);
public abstract function ValidateMessageSecurity(
     envelope : SoapEnvelope, 
     security : Security
) : Void;

Parameters

  • envelope
    A SoapEnvelope that represents the SOAP message to validate.
  • security
    A Security that represents the Security SOAP header of the SOAP message to validate.

Remarks

Create a custom policy assertion to enforce security requirements or modify SOAP messages when one of the Turnkey Security Assertions does not meet the application's needs. Use the ValidateMessageSecurity method to ensure incoming SOAP messages meet a set of security requirements. For more details about creating custom policy assertions, see How to: Create a Custom Policy Assertion.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

ReceiveSecurityFilter Class
ReceiveSecurityFilter Members
Microsoft.Web.Services3.Security Namespace