Problem generating XML version of ListChildren using URL access to ReportServer (XML of Render w

Folks, I want to programatically obtain the list of reports for a given directory in the reportserver, and I don't want to use either web services or the normal HTML view of reports that is shown. According tothe docs, I should be able to use the URL access approach to do this, yet I find that it does not work, specifically calling the ListChildren command this way, as in:

http://localhost/ReportServer?/test&rs:Command=ListChildren&rs:format=XML

It simply always provided an HTML view of the list of reports in that /test directory. Now, as proof that this is not a problem with generating XML in general from RS, I will note that the following will indeed give me an XML version of one of the reports in that very directory:

http://localhost/ReportServer?/test/demo&rs:Command=Render&rs:format=XML

Someone might wonder if it's a permissions problem, but I have given the one account on this dev server (BUILTIN\Administrators) all the roles: browser, content manager, and so on.

Might there be some undocumented (or otherwise unobvious) explanation for why ListChildren is not working for other than HTML format? I've tried PDF as well (again, works fine for Render, just not for ListChildren).

(I do see thatthis page says, "If a folder is referenced in a URL, a generic folder-navigation page is returned", but clearly one must list a folder for ListChildren. Andthis page indicates that listChildren's results show "Child items are displayed within a generic item-navigation page", so maybe itis somehow precluded from using other Formats. I'd just like to confirm that, and ask why it's not stated more clearly in the docs, or as an error when one attempts to use an alternative FORMAT with ListChildren. If it just doesn't work, I'll grant that at least I can screenscrape the simpler HTML that is returned more easily than the normal ReportManager folder list. )

[2526 byte] By [CharlieArehart] at [2007-12-23]

SQL Server

Site Classified