between using .NET and ASP Classic (which I have to use). It will be quite
difficult for me to get down to the bare metal with ASP and SOAP (e.g.
present, i.e. credentials, parameters, etc.) versus using a high-level
"Mike G." <m4053946_noSpam_@yahoo.com> wrote in message
news:%23UGo66eAIHA.5124@TK2MSFTNGP04.phx.gbl...
> You're making this quite a bit more difficult than it is.
>
> For Classic ASP OR ASP.NET:
> 1. call the reporting services web service, pass in whatever params you
> need to for the report.
> 2. get the response stream
> 3. send the response stream to the client.
>
> The link I sent earlier (
http://support.microsoft.com/kb/875447) has a
> complete example of the asp.net solution (and is only 15 lines of code!).
> If you insist in using classic asp, you will have to figure out how to
> call the web service, which does mean working with soap, etc.
>
> Mike G.
>
>
> with the classic asp solution, you will have to write code to call the
> reporting services web service.
>
> "Don Miller" <nospam@nospam.com> wrote in message
> news:u0ciaaeAIHA.4836@TK2MSFTNGP06.phx.gbl...
>> Thanks all.
>>
>> My concept of what needs to happen is this:
>>
>> 1) My ASP 3.0 application will call a web service (which one I don't know
>> yet - either RS or a custom ASP.NET website) using a) handcrafted ASP
>> code to supply all the SOAP headers, etc.?, or b) use
>> MSXML2.ServerXMLHTTP in ASP 3.0 to then call the RS web service and then
>> just change the headers of the response (see code below)?, or c) create a
>> new ASP.NET 2.0 website with a web service (that runs on my same
>> production server) that takes a CustomerID as a parameter, configures and
>> calls the RS web service, grabs the response.stream, writes it to a file,
>> renames the file, and returns the path of the PDF file now on the server
>> to the calling ASP 3.0 page.
>>
>> 2) Create an ASP.NET 2.0 website and web service that does what I
>> described above.
>>
>> Seems like there are too many steps and I may not need the intermediary
>> ASP.NET 2.0 website and web service at all (IF I KNEW WHAT I WAS DOING ;)
>> !
>>
>> And advice or pseudo-code would be appreciated.
>>
>>
>> <% Dim xmlobject
>> xmlobject = Server.CreateObject("MSXML2.ServerXMLHTTP")
>> xmlobject.Open ("GET",
>> "http://localhost/ReportServer/Pages/ReportViewer.aspx?%2fTestArchive%2fReport1Parameter",
>> False)
>> xmlobject.Send()
>> ' Adding header
>> newname = "NewName" & ".pdf"
>> Response.AddHeader ("Content-Disposition", "attachment;
>> filename=newname)
>> 'Setting content type for webclient
>> Response.ContentType = "application/pdf"
>> ' Writing binary data
>> Response.BinaryWrite (xmlobject.responseBody)
>> %>
>>
>>
>> "Norman Yuan" <NoAddress@NoEmail.fake> wrote in message
>> news:unEdqBeAIHA.3508@TK2MSFTNGP06.phx.gbl...
>>>I followed your previous posts.
>>>
>>> I do not think make URL to RS is good solution in your case, since your
>>> ASP app uses custom security. If you use URL call to the RS server
>>> directly, your user actually uses two web applications: one is your ASP
>>> app 9with custom security), and one is the RS server (IIS running RS).
>>> In order to achieve the same security control, you need re-configure the
>>> RS server to meet the same requirement as your ASP app. Do you have the
>>> control to the RS server?
>>>
>>> As I mentioned in my previous post and as Mike G suggested in this
>>> thread, if you are able to make web service call in your ASP app, as you
>>> stated, it is very simple to call RS's web service to get the report. It
>>> seems you backed off froom this just because the RS web service returns
>>> an binary stream. Really, get ting an binary stream on the server end is
>>> the best and most ideal thing you can get on the server end. You can
>>> svae it as file on the server with wnatever name you give it (and then
>>> return the file name back to user, as you originally wanted), or send
>>> the stream to user's browser, which triggers download/open popup.
>>>
>>> With VB or VBScript on the ASP server side code, it is not difficult to
>>> save a binary stream.
>>>
>>> "Don Miller" <nospam@nospam.com> wrote in message
>>> news:uZy$omcAIHA.4568@TK2MSFTNGP02.phx.gbl...
>>>> After suggestions from this newsgroup, I would like to use URL access
>>>> to render reports to PDF from my web application. My web application
>>>> (classic ASP 3.0) is secured by custom authentification (not Windows
>>>> auth) so no single page cannot be accessed without signing on first,
>>>> and every single page in the application is SSL encrypted.
>>>>
>>>> I think I can put the ReportServer directory as part of my secure
>>>> website as a virtual directory so it would require https (SSL), but I
>>>> cannot seem to find a way to prevent anyone who has seen or figured out
>>>> the URL (looking at JavaScript code, etc.) to access reports without
>>>> signing on to my application and by simply changing the URL (e.g.
>>>> changing CustomerID parameters). Anonymous users would seem to have
>>>> unfettered access to confidential reports by doing this by simply
>>>> pasting altered URLs in the browser.
>>>>
>>>> This is such a huge security hole, there must be some configuration to
>>>> prevent this. Am I missing something obvious here?
>>>>
>>>> Thanks for any help.
>>>>
>>>
>>
>>
>
>