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 ''. Unable to import operation 'SetReportHistoryOptions'. The XML element named 'ScheduleDefinition' from namespace '' 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.