Compartilhar via


UsernameForCertificateAssertion.ClientOutputFilter.SecureMessage Method (SoapEnvelope, Security, MessageProtectionRequirements)

Secures the SOAP message by using the security token specified by Security and the message protection requirements specified by MessageProtectionRequirements.

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

Usage

'Usage
Dim envelope As SoapEnvelope
Dim security As Security
Dim request As MessageProtectionRequirements
Dim usernameForCertificateAssertion_ClientOutputFilter1 As UsernameForCertificateAssertion.ClientOutputFilter
usernameForCertificateAssertion_ClientOutputFilter1.SecureMessage(envelope, security, request)

Syntax

'Declaration
Overloads Public Overrides Sub SecureMessage( _
    ByVal envelope As SoapEnvelope, _
    ByVal security As Security, _
    ByVal request As MessageProtectionRequirements _
)
public override void SecureMessage(
    SoapEnvelope envelope, 
    Security security, 
    MessageProtectionRequirements request
);
public:
virtual void SecureMessage(
    SoapEnvelope^ envelope,
    Security^ security,
    MessageProtectionRequirements^ request
) override;
public override void SecureMessage(
    SoapEnvelope envelope, 
    Security security, 
    MessageProtectionRequirements request
);
public override function SecureMessage(
     envelope : SoapEnvelope, 
     security : Security, 
     request : MessageProtectionRequirements
) : Void;

Parameters

  • envelope
    The content of a SOAP message.
  • security
    Represents the security header of the SOAP request.
  • request
    The protection requirements for a SOAP message.

Remarks

If the envelope parameter is null, a System.ArgumentNullException is thrown. If the security parameter is null, a SecurityFault is thrown. If the UsernameToken for the envelope is null or if the PasswordOption is SendNone then a System.InvalidOperationException is thrown.

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

UsernameForCertificateAssertion.ClientOutputFilter Class
UsernameForCertificateAssertion.ClientOutputFilter Members
Microsoft.Web.Services3.Design Namespace