Re: XMLA :Unable to process the request, datasourceinfo property was missing or incorrectly specified
From: Akshai Mirchandani [MS] (akshaim_at_online.microsoft.com)
Date: 06/10/04
- Next message: Michael Vardinghus: "Installing..."
- Previous message: Hanying Feng [MS]: "Re: XMLA :Unable to process the request, datasourceinfo property was missing or incorrectly specified"
- In reply to: Prasanna: "XMLA :Unable to process the request, datasourceinfo property was missing or incorrectly specified"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Jun 2004 15:28:26 -0700
I think the problem is that the properties you are creating are not in the
XMLA namespace. Please take a look at the Sample.NET code to see how it
constructs the properties in the correct namespace.
Thanks,
Akshai
--
This posting is provided "AS IS" with no warranties, and confers no rights
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
"Prasanna" <tawargerip@hotmail.com> wrote in message
news:d4b0bad7.0406092218.729a125d@posting.google.com...
> Hi,
> I am passing parameters after constructing as below
>
> prop is the parameter passed to XMLA execute
>
> prop="<PropertyList><DataSourceInfo>Client Cache Size=150;Execution
> Location=3;Default Isolation Mode";
> prop=
prop+"=1;"+dbinfo+"</DataSourceInfo><Format>Multidimensional</Format><Catalo
g>"+catlog+"</Catalog><AxisFormat>TupleFormat</AxisFormat><Content>Data</Con
tent></PropertyList>";
>
> result of prop is as below
> ======================================
> prop =<PropertyList><DataSourceInfo>Client Cache Size=150;Execution
> Location=3;Default Isolation Mode=1;Provider=MSOLAP;Data
>
Source=local</DataSourceInfo><Format>Multidimensional</Format><Catalog>IMSAM
E</Catalog><AxisFormat>TupleFormat</AxisFormat><Content>Data</Content></Prop
ertyList>
> =======================================
>
> XmlDocument xmldoc = new XmlDocument();
> xmldoc.LoadXml("<root/>");
> XmlElement newElem = xmldoc.CreateElement("Statement");
> newElem.InnerText = strMDX+where;
> xmldoc.DocumentElement.AppendChild(newElem);
>
> cmd = xmldoc.FirstChild.InnerXml;
> {
> strXML= Execute(cmd,prop);
> }
>
>
> datasource.xml file has Datasource info property mentined as below
> <DataSourceInfo>Provider=MSOLAP;Data Source=local</DataSourceInfo>
>
>
> Execute function is as below
>
>
>
============================================================================
==
> private static string Execute( string Command, string Properties)
> {
> try
> {
> // Create the Xml for Analysis proxy class
> MsXmlAnalysis xa = new MsXmlAnalysis();
> // This line is to make sure that
> // we pass the IIS security checks
> // without any problem. Theoretically, this
> // should not be necessary, but sometimes,
> // when you generate a proxy class using
> // wsdl.exe, it creates a problem, so it's
> // better to include the following line
> xa.Credentials =
> System.Net.CredentialCache.DefaultCredentials;
>
> //server url
> String url1;
>
>
url1=System.Configuration.ConfigurationSettings.AppSettings["RB.IMS.WebServi
ces.MSXMLAURL"].ToString();
> xa.Url =
System.Configuration.ConfigurationSettings.AppSettings["RB.IMS.WebServices.M
SXMLAURL"].ToString();
> XmlDocument queryDom = new XmlDocument();
>
>
> XmlDocument restrictDom = new XmlDocument();
> XmlElement xelem1;
> XmlElement xelem2;
> XmlElement xelem3;
>
> // Load the command and propertylist into a DOM
> // and cast them to an element
> queryDom.LoadXml(Command);
> restrictDom.LoadXml(Properties);
> xelem1 = (XmlElement) queryDom.FirstChild;
> xelem2 = (XmlElement) restrictDom.FirstChild;
>
> // Call the execute method
> xelem3 = xa.Execute(xelem1, xelem2);
>
> // return the resulting XML
> return xelem3.InnerXml;
> }
> catch(Exception err)
> {
> throw err;
> }
> }
> =================================================================
>
>
> the execution leads to error goes into catch saying "Unable to process
> the request because datasourceinfo property was missing or incorrectly
> specified"
>
>
> Can any one help me pointing out what is wrong in my code
>
>
> Rregards
> Prasanna
- Next message: Michael Vardinghus: "Installing..."
- Previous message: Hanying Feng [MS]: "Re: XMLA :Unable to process the request, datasourceinfo property was missing or incorrectly specified"
- In reply to: Prasanna: "XMLA :Unable to process the request, datasourceinfo property was missing or incorrectly specified"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|