EndSession Element (XMLA)

Uses the SOAP header in a SOAP request message to end an existing session on an instance of Microsoft SQL Server Analysis Services.

Namespace urn:schemas-microsoft-com:xml-analysis

Syntax


<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">  
   <soap:Header>  
      ...  
      <EndSession  
         xmlns="urn:schemas-microsoft-com:xml-analysis"  
         SessionId="string" />  
      ...  
   </soap:Header>  
   <soap:Body>  
      ...  
   </soap:Body>  
</soap:Envelope>  

Element Characteristics

Characteristic Description
Data type and length None
Default value None
Cardinality 0-1: Optional element that can occur once and only once.

Element Relationships

Relationship Element
Parent elements None
Child elements None

Attributes

Attribute Description
SessionId Required String attribute that identifies the session to be ended. Analysis Services uses a globally unique identifier (GUID) to identify a session.

Remarks

The EndSession header element is part of the SOAP request sent to an existing, explicitly started session on an Analysis Services instance. If the EndSession header element is sent, but contains a session identifier that is no longer valid, a SOAP fault is returned that indicates that the session cannot be found.

See Also

BeginSession Element (XMLA)
Session Element (XMLA)
Managing Connections and Sessions (XMLA)
Headers (XMLA)