Databases Reference
In-Depth Information
Properties
The Properties parameter is an array of properties defined by the XML/A specification, by
OLE DB, or by the XML/A provider. These properties are transferred in a request to reduce
the need to store state on the Internet. The Properties parameter acts the same in XML/A
as it does in OLE DB. OLE DB stores parameters on the server for use in requests, whereas
XML/A sends the parameters with each request.
The following example is a request the client sends to the server to request a list of all the
cubes in a certain database.
First generate a SOAP envelope —the XML element that any SOAP message starts with:
<Envelope xmlns = “http://schemas.xmlsoap.org/soap/envelope/”>
Next create the body of the SOAP message:
<Body>
Then the Discover method of XML/A:
<Discover xmlns = “urn:schemas-microsoft-com:xml-analysis”>
Define the parameter, RequestType , which requests a list of cubes from the XML/A provider:
<RequestType>MDSCHEMA_CUBES</RequestType>
Limit the request to cubes with the name Warehouse and Sales in the FoodMart 2008
database:
<Restrictions>
<RestrictionList>
<CATALOG_NAME>Foodmart 2008</CATALOG_NAME>
<CUBE_NAME>Warehouse and Sales</CUBE_NAME>
</RestrictionList>
</Restrictions>
Create a collection of properties, specifying the database that the request will be sent to
and a time interval after which the request will be stopped if it is not completed:
<Properties>
<PropertyList>
<Catalog>Foodmart 2008</Catalog>
<Timeout>10000</Timeout>
</PropertyList>
</Properties>
</Discover>
</Body>
</Envelope>
Search WWH ::




Custom Search