First you need to make sure you have a user that can access Analysis Services. You will use this user as your Application Pool Identiy in IIS7. This user needs read permission to the cube and all of its dimensions.
I recommend creating a DNS CNAME to the database server, so as not to put the name of the database server in the connection string.
For the first steps, I will reference Mike's Blog This blog will go through creating the virtual directory and application pool in IIS7. Now, I found a few things that need to be added to the steps in this blog.
1) Make sure that only Windows Authentication is enabled on the virtual directory.
2) Set the identity of the application pool to a user who has the necessary access to the cube (readonly recommended).
3) Finally, the MSOLAP.4 (2008 version) provider does not work for some reason. We were unable to figure out why. We were able to successfully connect using the MSOLAP.3 provider.
4)I also recommend only using SSL. If the cube needs to be access from an external source, then HTTPS will secure the transmission. If the external source is a non-domain joined computer then you will need a publically trusted cert.
All that being said, the process should be at this stage:
1)A cube is setup
2)A virtual directory (or website) is setup on the same server as the SQL Server instance. The HTTP site can be setup on a different server, but in our case, we just put it on the local machine.
3)A site within MOSS is allocated for the PivotView WebPart
To set the webpart up, you must know the following: The name of the cube and the url to OLAP server.
To Add the web part, edit a page in MOSS and select Add WebPart. In the list of WebParts you will notice a hyperlink at the bottom right for the Advanced webpart gallery. Choose this.
Navigate through this gallery until you find the PivotViewWebPart. Once you add the webpart, choose to modify this shared webpart. If you expand the advanced section of the webpart settings you will see the place for the connection string. There is one step after this so keep reading.
The connection string should look like this:
Provider=MSOLAP.3;Persist Security Info=False;Initial Catalog=
We played with a number of connection strings, but we finally settled on this one and here is why. MSOLAP.3 is the only provider we could get to work with OLAP 2008. The connection string does not contain any usernames or passwords because we are using Windows Authentication to connect to the website and then the application pool is making the connection to the cube. Finally, Persist Security Info is set to false, this insures that no usernames or passwords (security info) is passed either way during the connection. Now, the users first have to authenticate to the website which proves they are a member of the organization and have permission to see the cube, and this is the only way they can connect, which prevents any rogue connections to the database.
The final step for setting up the webpart is to add the name of the cube, not the data warehouse, to the field Query String.
Once you click save, the webpart should be populated with a pivot table of the cube.
There is one final note. We were able to get the connection working and then we started QAing it before we rolled it out. The issue we would see is that one sysadmin could connect fine and see all of the data, but the other sysadmin with identical rights everywhere could only see some data or none at all. This took us hours to narrow down. We finally ran across a few forum posts and verified that Windows 7 RC has trouble connecting this way. For whatever reason, it only works partially. We verified this and verified that we could access from Windows 7 RTM, Vista and XP. Gotta love Office Web Components.