Welcome to MSDN Blogs Sign in | Join | Help

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 'http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices'. Unable to import operation 'SetReportHistoryOptions'. The XML element named 'ScheduleDefinition' from namespace 'http://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.

Published Thursday, May 15, 2008 5:14 PM by russch
Attachment(s): ReportService2006.wsdl

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Thanks

Friday, June 13, 2008 4:38 PM by Jeff Lyttle

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!.

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker