Hi, I've got a small XMLA web service designed to run on XMLA1.0 but i've got 1.1 installed on my machine. I generated the MsXMLAnalysis class using the wsdl utility from the VS.wsdl file in the sample.NET application and replaced the MsXMLAnalysis file in the web service project with the newly generated file. But now, I get the following compilation error: No Overload Method for 'Execute' takes '2' arguments. I have the following Execute method in my code: private static string Execute(string Command, string Properties) { ............ .............. } and within the Execute method, I'll calling Execute by passing 2 XmlElement objects. This compiles fine if I use the MsXmlAnalysis.cs class for XMLA1.0, but then I get this error when executing the web service: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Anybody got any idea how to get this application to run in XMLA1.1? Cheers, Dipti
There was a small change made to namespaces in the XMLA protocol between 1.0 and 1.1. This makes the wsdl of one not work against the other. You should use the corresponding WSDL when connecting to a 1.0 or 1.1 provider. 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. wrote in message news:1139781405.122595.146010@g14g2000cwa.googlegroups.com... > Hi, > I've got a small XMLA web service designed to run on XMLA1.0 but i've > got 1.1 installed on my machine. I generated the MsXMLAnalysis class > using the wsdl utility from the VS.wsdl file in the sample.NET > application and replaced the MsXMLAnalysis file in the web service > project with the newly generated file. But now, I get the following > compilation error: > > No Overload Method for 'Execute' takes '2' arguments. > > I have the following Execute method in my code: > private static string Execute(string Command, string Properties) > { ............ > ............. > } > > and within the Execute method, I'll calling Execute by passing 2 > XmlElement objects. > > This compiles fine if I use the MsXmlAnalysis.cs class for XMLA1.0, but > then I get this error when executing the web service: > > [Microsoft][ODBC Driver Manager] > Data source name not found and no default driver specified > > > Anybody got any idea how to get this application to run in XMLA1.1? > > Cheers, > Dipti >
I did use the new WSDL, but the actual code in the web service makes a call to the Execute method as it was in XMLA1.0, so the error is when compiling the C# code. Will this code have to be re-written to comply with XMLA1.1? Dipti
I suggest to start with a clean project and make it work using the new WSDL. Your application code won't need to change -- it is just the generated code from the WSDL that will be modified. 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. wrote in message news:1140430580.677014.154600@g47g2000cwa.googlegroups.com... > > I did use the new WSDL, but the actual code in the web service makes a > call to the Execute method as it was in XMLA1.0, so the error is when > compiling the C# code. Will this code have to be re-written to comply > with XMLA1.1? > > Dipti >