मैं रिपोर्टिंग सर्वर वेब सेवा का उपयोग कर कोड द्वारा एक रिपोर्टिंग सर्वर समाधान को तैनात करने की कोशिश कर रहा हूं: http://_Server_Name_/ReportServer/ReportService2010.asmx?wsdl।ReportingService2010 का उपयोग कैसे करें?
दुख की बात है कि मुझे ऑनलाइन कोई उदाहरण नहीं मिल रहा है। MSDN से केवल कुछ अस्पष्ट जानकारी।
जब बिजनेस इंटेलिजेंस डेवलपमेंट स्टूडियो के माध्यम से प्रकाशित होता है, तो यह साझा डेटा स्रोत प्रकाशित करता है और फिर रिपोर्ट प्रकाशित करता है। मैं बहुत सी # पर कुछ इसी तरह करने के लिए कोशिश कर रहा हूँ:
var service = new ReportingService2010();
service.Credentials = new NetworkCredential(username, password, domain);
foreach(var dataSourcePath in GetDataSources()) {
string name = Path.GetFileNameWithoutExtension(dataSourcePath);
Byte[] content = GetFileContent(dataSourcePath);
service.CreateCatalogItem("DataSource", name, parent, true, content, null, out warnings);
}
लेकिन CreateCatalogItem मेरा पीछा SoapException अपवाद देता है:
The input XML does not conform to the schema. XML grammar is described in the API documentation. For XML in reports, refer to Report Definition Language syntax. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InvalidXmlException: The input XML does not conform to the schema. XML grammar is described in the API documentation. For XML in reports, refer to Report Definition Language syntax.
वहाँ कुछ मैं गलत या किसी अन्य दृष्टिकोण मैं लेना चाहिए कर रहा हूँ है ?
मुझे CreateCatalogItem का उपयोग करके डेटासोर्स को धक्का देने में एक ही समस्या है। –
@ पीटर स्टीफेंस, जो रिपोर्टिंग सर्वर आप अपने विकास और अपनी उत्पादन मशीन पर उपयोग कर रहे हैं? – dcarneiro