4.2.3 Request for List of Cubes
The client sends a header for an MDSCHEMA_CUBES request:
-
POST /as/msmdpump.dll HTTP/1.1 User-Agent: XmlaClient Content-Type: text/xml SOAPAction: "urn:schemas-microsoft-com:xml-analysis:Discover" X-Transport-Caps-Negotiation-Flags: 1,0,0,0,0 Host: testserver:2390 Content-Length: 571 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> <XA:Session soap:mustUnderstand="1" SessionId="537C61C6-827C-4305-83A6-C8CE4A91001B" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:XA="urn:schemas-microsoft-com:xml-analysis" /> </Header> <Body> <Discover xmlns="urn:schemas-microsoft-com:xml-analysis"> <RequestType>MDSCHEMA_CUBES</RequestType> <Restrictions></Restrictions> <Properties><PropertyList><Content>Data</Content></PropertyList></Properties> </Discover> </Body> </Envelope>
The server responds with an empty list of cubes:
-
HTTP/1.1 200 OK Date: Sat, 16 Feb 2008 00:30:34 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 208 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <DiscoverResponse xmlns="urn:schemas-microsoft-com:xml-analysis" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2"> <return> <root xmlns="urn:schemas-microsoft-com:xml-analysis:rowset" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/> </return> </DiscoverResponse> </soap:Body> </soap:Envelope>