I am putting together a quick prototype where I want to have slide library integration in PowerPoint. I understand there is already PowerPoint integration in PowerPoint 2007 for slide libraries; however, it requires a higher version of PowerPoint (Enterprise and Ultimate) and the OOTB functionality does not meet my needs. Doing research yesterday, there is little information on the slide library web service (/_vti_bin/SlideLibrary.asmx). This link contains some good information on how the PowerPoint team is accessing SharePoint using the slide library web service (see image below). I have worked with a few of the SharePoint web services but never the Slide Library one. I did run into one issue when adding the reference which I wanted to document in this post.
Clik here to view.
.gif)
SharePoint 2007/PowerPoint 2007
Below are the steps I followed for creating a test console project.
- Open Visual Studio 2008.
- Create a new console application.
- In Solution Explorer, right-click on References, and select the Add Service Reference option.
- Click the Advanced button on the Add Service Reference dialog.
- Click the Add Web Reference button on the Service Reference Settings dialog. This should display the familiar Add Web Reference dialog from Visual Studio 2005.
- Click the Web services on local machine link to browse for the correct Slide Library web service.
- Click the correct Slide Library and change the Web reference name to SlideLibraryService. Click the Add Reference button to add the reference.
- The web reference should now be added.
- If you attempt to new-up the SlideLibrary object; however, the symbol cannot be resolved.
- Updating the web reference will display the error below. Hmm, not very helpful.
To resolve the issue, we need to do a little more research to figure out why the error is occurring.
- Open the SlideLibraryService folder in Windows Explorer.
- OK, no SlideLibrary.cs file. That explains why the SlideLibrary object symbol is not resolved.
- Open the Visual Studio 2008 Command Prompt and change directory (cd) to the SlideLibraryService folder.
- Type the following command to manually create the CS file: wsdl slidelibrary.wsdl /out:slidelibrary.cs
- Ahh, you will start receiving the error below that complex type ArrayOfString has already been declared.
- Open SlideLibrary.wsdl in an editor (I use NotePad++).
- Search for ArrayOfString and you will notice there are two complexType blocks for ArrayOfString.
- Delete the second ArrayOfString complexType block and save the SlideLibrary.wsdl file.
- Run the following wsdl command: wsdl slidelibrary.wsdl /out:slidelibrary.wsdl
- The SlideLibrary.cs file should now be created.
- In Visual Studio 2008, click the Show All Files button in Solution Explorer.
- Include the slidelibrary.cs file in the project.
- Recompile and you should be good to go.
Image may be NSFW.
Clik here to view.

Clik here to view.
