2010年8月12日 星期四

SSRS 亂七八糟的SOAP API 配對

VS2003一直用到VS2010, 每一個版本都免不了要使用到RDL或RLDC的報表功能
所以想要整理一個可以呼叫各版本Reporting Server SOAP API的功能

結果發現, 真是有夠亂,又一整個假象....搞得我暈頭轉向的.....

SQL Server 2000 Reporting Server ReportService.asmxvs2005
SQL Server 2005 Reporting Server ReportService2005.asmxvs2008
SQL Server 2008 Reporting Server ReportService2006.asmxvs2010
SQL Server 2008R2 Reporting Server ReportService2010.asmx

以上連連看, 哪個配哪個可以WORK????

因為用VS2010開發,所以整個測試開發環境就在VS2010上,
所以要測試SQL SERVER Reporting 各版本和SOAP API各版本的組合.

為了方便, 先利用下列指令在VS command line下,將各版本的SOAP API變成一個class, 這樣在專案中就不用新增web reference

wsdl /language:CS /n:"Microsoft.SqlServer.ReportingServices2010" http://sql2008r2/reportserver_sqlserver/reportservice2010.asmx?wsdl


wsdl /language:CS /n:"Microsoft.SqlServer.ReportingServices2006" http://sql2008/reportserver_sql2008/reportservice2006.asmx?wsdl

wsdl /language:CS /n:"Microsoft.SqlServer.ReportingServices2005" http://sql2008/reportserver_sql2008/reportservice2005.asmx?wsdl

wsdl /language:CS /n:"Microsoft.SqlServer.ReportingServices2000" http://sql2000/reportserver/reportservice.asmx?wsdl

將產出的.cs檔, include到專案中就可以使用了

明明知道
VS2008中, report viewer的engine 是RS2005
VS2010中,report viewer的engine 是RS2008

但一直被sql server 版本數字的假象給擾亂....GOOGLE的關鍵字又下得不夠精準.. 



測了半天, 我已經頭暈暈了.
 
測試:
SQL Server 2008 (SP1) Reporting Server + ReportServices2005.asmx + vs2010   可以work
雜唸... ReportServices2005.asmx  為何要配Reporting Server  2008啊, 版本數字能不能匹配一下啊

原本以為ReportServices2006.asmx 是給Reporting Server 2008用得哩...在此打轉很久..空轉
MSDN的說明要好好看仔細, 不要自做聰明.....唉.....

測試:
SQL Server 2008 R2 Reporting Server + ReportServices2010.asmx + vs2010 可以work
雜唸...  Reporting Server 2008為何要配ReportServices2010.asmx , 直接跳過ReportServices2008.asmx ....版本數字能不能匹配一下啊

沒有留言:

張貼留言

publish error allowDefinition='MachineToApplication'

一個老舊的aspx web form專案,調了一些功能建置成功,但進行部署時顯示以下錯誤。 在應用程式層級之外使用註冊為 allowDefinition='MachineToApplication' 的區段發生錯誤。錯誤的原因可能是虛擬目錄尚未在 IIS 中設定為...