Поделиться через


Problems making web reference to ReportService2006: Unable to import operation "SetReportHistoryOptions"

Today I needed to write a bit of code to create a model on a SQL 2005 Report server which was running in Sharepoint integrated mode. Boy, what fun I had!

 After creating my web reference, I got this error:

Custom tool error: Unable to import WebService/Schema. Unable to import binding 'ReportingService2006Soap' from namespace 'https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices'. Unable to import operation 'SetReportHistoryOptions'. The XML element named 'ScheduleDefinition' from namespace 'https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices' is already present in the current scope. C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\MakeAModel\Properties\Settings.settings 1 1 MakeAModel

After much scratching of the head, grumbling, and beating of the breast, I checked our internal bug database and found that this is a known issue (there's no KB article however).

So, I held by breath, cracked open the WSDL and started deleting every element which referred to the SetReportHistoryOption operation since I didn't need this method anyway. After I saved my changes, the error message didn't go away. I shut down VS, reloaded my project, built it, and all was well in my world. I'm attaching my hacked WSDL for your viewing pleasure.

ReportService2006.wsdl

Comments

  • Anonymous
    June 13, 2008
    I tried your solution and it worked great.  I just used the wsdl tool to create the client application file and used that from my code.  Thanks!.
  • Anonymous
    February 14, 2012
    The comment has been removed