Create a Web Service Proxy for ReportingService 2010 RRS feed

  • Question

  • Hi,

    I tried to create a web service proxy for Report Server Web Service 2010 using the instructions from the below link


    i used the command

    wsdl /language:CS /n:"Microsoft.SqlServer.ReportingServices2010" http://localhost/reportserver/reportservice2010.asmx?wsdl

    I am getting the following error

     Error: There was an error processing 'http://localhost/reportserver/reportservic
      - There was an error downloading 'http://localhost/reportserver/reportservice2
      - The request failed with the error message:
                            SQL Server Reporting Services
                    </title><meta name="Generator" content="Microsoft SQL Server Rep
    orting Services 10.0.1600.22" />
    <meta name="HTTP Status" content="500" />
    <meta name="ProductLocaleID" content="127" />
    <meta name="CountryLocaleID" content="1033" />
    <meta name="StackTrace" content="   at Microsoft.ReportingServices.Diagnostics.C
    atalogItemContext..ctor(IPathTranslator pathTranslator, String userSuppliedPath,
     String parameterName)
       at Microsoft.ReportingServices.Library.GetItemTypeAction.PerformActionNow()
       at Microsoft.ReportingServices.Library.RSSoapAction`1.Execute()
       at Microsoft.ReportingServices.WebServer.Global.IsRequestForReport()
       at Microsoft.ReportingServices.WebServer.Global.IsViewerNeeded()
       at Microsoft.ReportingServices.WebServer.Global.DispatchRequest()
       at Microsoft.ReportingServices.WebServer.Global.Application_AuthenticateReque
    st(Object sender, EventArgs e)" />
                            BODY {FONT-FAMILY:Verdana; FONT-WEIGHT:normal; FONT-SIZE
    : 8pt; COLOR:black}
                            H1 {FONT-FAMILY:Verdana; FONT-WEIGHT:700; FONT-SIZE:15pt
                            LI {FONT-FAMILY:Verdana; FONT-WEIGHT:normal; FONT-SIZE:8
    pt; DISPLAY:inline}
                            .ProductInfo {FONT-FAMILY:Verdana; FONT-WEIGHT:bold; FON
    T-SIZE: 8pt; COLOR:gray}
                            A:link {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#3366
                            A:hover {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#FF3
    300; TEXT-DECORATION:underline}
                            A:visited {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#3
    366CC; TEXT-DECORATION:none}
                            A:visited:hover {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; co
    lor:#FF3300; TEXT-DECORATION:underline}

            </head><body bgcolor="white">
                            Reporting Services Error<hr width="100%" size="1" color=
    "silver" />
                            <li>The path of the item 'wsdl' is not valid. The full p
    ath must be less than 260 characters long; other restrictions apply. If the repo
    rt server is in native mode, the path must start with slash. (rsInvalidItemPath)
     <a href="http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.Reportin
    crosoft%20SQL%20Server%20Reporting%20Services&ProdVer=10.0.1600.22" target="_bla
    nk">Get Online Help</a></li>
                    </ul><hr width="100%" size="1" color="silver" /><span class="Pro
    ductInfo">SQL Server Reporting Services</span>


    But it works for 2005

    wsdl /language:CS /n:"Microsoft.SqlServer.ReportingServices2005" http://<localhost/reportserver/reportservice2005.asmx?wsdl

    Any Pointers?




    Monday, June 14, 2010 10:35 PM


  • Hi Anis,

    Currently, ReportService2010 only be available in SQL Server Reporting Services 2008 R2.
    The product version for SQL Server Reporting Services 2008 R2 must be 10.50.1600.X.

    From the error message you posted, the product version is 10.0.1600.22(<meta name="Generator" content="Microsoft SQL Server Rep
    orting Services 10.0.1600.22" />
    ), this means you are using SQL Server Reporting Services 2008 RTM. SQL Server Reporting Services 2008 doesn't include ReportService2010 endpoint. That is the root cause of the error.

    To solve the issue, please install SQL Server Reporting Services 2008 R2 instead of SQL Server Reporting Services 2008.
    Or, please download the proxy class from: http://cid-3c7e963ff6ccd974.office.live.com/self.aspx/.Public/ReportingService2010.cs

    If you have any more questions, please feel free to ask.

    Jin Chen

    Jin Chen - MSFT
    • Marked as answer by Challen Fu Friday, June 25, 2010 12:11 PM
    Wednesday, June 16, 2010 2:31 AM