天天看点

SSAS : 如何在http访问SSAS中指定语言标识

我们之前提到,如果在ADOMD.NET里面的话,它的ConnectionString有一个属性叫LocaleIdentifier,这是指定语言的。

那么如果我们是通过HTTP的方式来访问SSAS的话,该怎麽办呢

其实道理也是差不多的,可以通过在消息包中指定下面的信息即可

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">

<Header>

<BeginSession soap:mustUnderstand="1" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:schemas-microsoft-com:xml-analysis" />

<Version Sequence="2" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine/2" /><NamespaceCompatibility xmlns="http://schemas.microsoft.com/analysisservices/2003/xmla" mustUnderstand="0"/></Header>

<Body>

<Execute xmlns="urn:schemas-microsoft-com:xml-analysis">

<Command>

<Statement />

</Command>

<Properties>

<PropertyList>

<LocaleIdentifier>2052</LocaleIdentifier>

<DataSourceInfo />

</PropertyList>

</Properties>

</Execute>

</Body>

继续阅读