4.2.4 End of Session

The client sends a header of the request to end this session:

 POST /as/msmdpump.dll HTTP/1.1
 User-Agent: XmlaClient
 Content-Type: text/xml
 SOAPAction: "urn:schemas-microsoft-com:xml-analysis:Execute"
 X-Transport-Caps-Negotiation-Flags: 1,0,0,0,0
 Host: testserver:2390
 Content-Length: 596
 Expect: 100-continue

The server responds with a confirmation:

 HTTP/1.1 100 Continue

The client sends the payload portion of the request:

 <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
   <Header>
     <EndSession soap:mustUnderstand="1" SessionId="537C61C6-827C-4305-83A6-C8CE4A91001B" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:schemas-microsoft-com:xml-analysis" />
   </Header>
   <Body>
     <Execute xmlns="urn:schemas-microsoft-com:xml-analysis">
       <Command>
         <Statement />
       </Command>
       <Properties>
         <PropertyList>
           <LocaleIdentifier>1033</LocaleIdentifier>
         </PropertyList>
       </Properties>
     </Execute>
   </Body>
 </Envelope>

The server responds with a confirmation:

 HTTP/1.1 200 OK
 Date: Sat, 16 Feb 2008 00:30:35 GMT
 Server: Microsoft-IIS/6.0
 X-Powered-By: ASP.NET
 Transfer-Encoding: chunked
 X-Transport-Caps-Negotiation-Flags: 0,0,0,0,0
 Content-Type: text/xml
 10c
 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
     <ExecuteResponse xmlns="urn:schemas-microsoft-com:xml-analysis">
       <return>
         <root xmlns="urn:schemas-microsoft-com:xml-analysis:empty"/>
       </return>
     </ExecuteResponse>
   </soap:Body>
 </soap:Envelope>

The client closes the connection.