Show / Hide Table of Contents

Class SOAPBinding

Supports the SOAP binding.

Inheritance
System.Object
SOAPBinding
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ComponentSpace.SAML2.Bindings
Assembly: ComponentSpace.Saml2.dll
Syntax
public static class SOAPBinding
Remarks

Refer to the Bindings for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.

Methods

ReceiveRequest(HttpRequestBase)

Receives a SAML request. The SAML request is extracted from the received SOAP message.

Declaration
public static XmlElement ReceiveRequest(HttpRequestBase httpRequest)
Parameters
Type Name Description
System.Web.HttpRequestBase httpRequest

The HTTP request containing the SAML request.

Returns
Type Description
System.Xml.XmlElement

The SAML request.

Exceptions
Type Condition
SAMLBindingException

Thrown when the receive fails.

SendRequestReceiveResponse(WebRequest, XmlElement)

Sends a SAML request and receives a SAML response. The SAML request is wrapped in a SOAP message prior to sending. The SAML response is extracted from the received SOAP message.

Declaration
public static XmlElement SendRequestReceiveResponse(WebRequest webRequest, XmlElement samlMessage)
Parameters
Type Name Description
System.Net.WebRequest webRequest

The WebRequest object used to send the request.

System.Xml.XmlElement samlMessage

The SAML request.

Returns
Type Description
System.Xml.XmlElement

The SAML response.

Exceptions
Type Condition
SAMLBindingException

Thrown when the send fails.

SendRequestReceiveResponse(String, XmlElement)

Sends a SAML request and receives a SAML response. The SAML request is wrapped in a SOAP message prior to sending. The SAML response is extracted from the received SOAP message.

Declaration
public static XmlElement SendRequestReceiveResponse(string destinationURL, XmlElement samlMessage)
Parameters
Type Name Description
System.String destinationURL

The destination URL.

System.Xml.XmlElement samlMessage

The SAML request.

Returns
Type Description
System.Xml.XmlElement

The SAML response.

Exceptions
Type Condition
SAMLBindingException

Thrown when the send fails.

SendResponse(HttpResponseBase, XmlElement)

Sends a SAML response. The SAML response is wrapped in a SOAP message prior to sending.

Declaration
public static void SendResponse(HttpResponseBase httpResponse, XmlElement samlMessage)
Parameters
Type Name Description
System.Web.HttpResponseBase httpResponse

The HTTP response used to send the SAML response.

System.Xml.XmlElement samlMessage

The SAML response.

Exceptions
Type Condition
SAMLBindingException

Thrown when the send fails.

See Also

SAMLIdentifiers.BindingURIs
In This Article
Back to top Copyright © ComponentSpace Pty Ltd 2004-2022. All rights reserved.