Class SOAPBinding
Supports the SOAP binding.
Inherited Members
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 | 
|---|---|---|
| HttpRequestBase | httpRequest | The HTTP request containing the SAML request.  | 
      
Returns
| Type | Description | 
|---|---|
| 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 | 
|---|---|---|
| WebRequest | webRequest | The   | 
      
| XmlElement | samlMessage | The SAML request.  | 
      
Returns
| Type | Description | 
|---|---|
| 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 | 
|---|---|---|
| string | destinationURL | The destination URL.  | 
      
| XmlElement | samlMessage | The SAML request.  | 
      
Returns
| Type | Description | 
|---|---|
| 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 | 
|---|---|---|
| HttpResponseBase | httpResponse | The HTTP response used to send the SAML response.  | 
      
| XmlElement | samlMessage | The SAML response.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| SAMLBindingException | Thrown when the send fails.  |