Creating PDF (or any other file type) from SQL Reporting Services using .WSDL (VS2012) Part 1
Written by David Bauernschmidt Friday, 7 December 2012
Over the years I have built several SSRS (SQL Server Reporting Services) reports. Many of them have been designed, created, and deployed inside the standard SSRS folders structure. However; a couple of years ago I had a client wanting to access the report while inside a web application. They didn’t want to leave the application to run the report and they wanted it to look and feel as part of the application.
At first the request did not seem that difficult, after all Arvixe has all of this technology and it seemed to be straight forward. Just start a new project, add a new reference, and start coding, Right? However; I should have known that when things seem simple there is always a fly in the ointment. The next couple of articles will take you from beginning to end in using a reporting services .wsdl to generate reports from within a web application. (I will not go over the actual creation of the report.)
In preparation of this tutorial I started to use Visual Studio 2012 and once again thought that everything was the same as Visual Studio 2005/2008. Guess what? Not so fast. I had a problem creating a .wsdl from adding a reference inside VS2012. Some of these “catchas” might be related to OE (Operator Error) but I figured I cannot be the only one with challenges (or maybe I am).
I don’t know exactly how many articles to this tutorial there will be, but I can tell you that it will be more than one article. Let’s roll up our sleeves, dive into this lesson and remove all flies. One other quick note, I will also go down a few rabbit trails where I had problems just in case you end up the same place. If you find a step too confusing or in need of better clarification let me know.
Step 1: Launch Visual Studio 2012
Step 2: Click on ‘File’ and select New Blank Web Site (Figure 1)
Step 3: Enter Web Site Name -> ‘SSRS Sample’ (Figure 1)
Step 4: Right Click on Web Site
Step 5: Select “Add Service Reference” (Figure 2)
Step 6: Select Advanced (Bottom Left button) (Figure 3)
Step 7: Select Add Web Reference (Bottom Left button) (Figure 4)
Step 8: Enter the Web Service Reference for Reporting Service location. (Figure 5)
Step 9: Enter the Web Service Reference for Reporting Service location. (Figure 6)
After spending hours looking for a solution and not finding it I then tried to
go to a browser and enter the same URL in.
It prompted me for my security credentials
and then it produced a screen like Figure 8. I then saved it as
ReportExecution2005.XML file and repeated steps 5-7.
Step 10: I Entered the location of my saved file and clicked process.(Figure 9)
Step 11: If you host with Arvixe then it should be something like XXX.arvixe.com(Figure 10)
Step 12: Click Add Reference(Figure 10)
You can check your web.config and see that it added an entry under the appsettings xml tag. It is important that you see this because you will change this when you deploy to Arvixe.