Book Image

Advanced Microsoft Content Management Server Development

Book Image

Advanced Microsoft Content Management Server Development

Overview of this book

Microsoft Content Management Server 2002 is a dynamic web publishing system with which you can build websites quickly and cost-efficiently. MCMS provides the administration, authoring, and data management functionality, and you provide the website interface, logic, and workflow. Microsoft SharePoint Portal Server (SPS) also features in the book. SPS 2003 enables enterprises to deploy an intelligent portal that seamlessly connects users, teams, and knowledge so that people can take advantage of relevant information across business processes to help them work more efficiently.You've mastered the basics of MCMS, and setup your own MCMS installation. You've only scratched the surface. This book is your gateway to squeezing every penny from your investment in MCMS and SPS, and making these two applications work together to provide an outstanding richness of content delivery and easy maintainability. As a developer, the Publishing API (PAPI) is at the heart of your work with MCMS, and this book starts by taking you on the most detailed tour of the PAPI you will find anywhere. As a live example, a component that reveals the structure of your MCMS site is created, taking you through how to manage the common elements of MCMS programmatically. Getting SharePoint and MCMS to work together is the next stop in the book. You will see how to use SharePoint's search engine to search MCMS content, publish content between the two systems, and create SharePoint Web Parts to draw content from MCMS.To ease your everyday work with MCMS, there are chapters on placeholder validation, and some useful custom placeholders for common MCMS tasks, such as a date-time picker, a placeholder for multiple attachments, and a DataGrid placeholder among others. There are a number of ways to consume MCMS content from the outside world, and we look at two exciting ways here; RSS and InfoPath/Web Services. The InfoPath solution provides another interface to MCMS content that allows content authors to concentrate on content and not the presentation. The book is rounded off with a number of must-have MCMS tips and tricks. Revert a posting to a previous version Change a postingÔø???s template Build a recycle bin Deal with links to deleted resources Update a postingÔø???s properties directly from a template file Re-write ugly URLs to friendly URLs Export resource gallery items using the site deployment API (SDAPI) Configure the position and size of the Web Author Console Dialogs Get frames and IFrames to work correctly in a template file
Table of Contents (21 chapters)
Advanced Microsoft Content Management Server Development
Credits
About the Authors
About the Reviewers
Index

Appendix A. Setting up MCMS and SPS on the Same Virtual Server

Microsoft Windows SharePoint Services (WSS), SharePoint Portal Server (SPS), and Content Management Server (MCMS) utilize managed URLs for processing client requests. Because these applications utilize managed URLs (where ISAPI filters determine what any request is looking for), some special configurations need to be made in order for SharePoint and MCMS to work together on the same virtual server.

This appendix will explain how the managed URLs of the two products work, and walk through the configuration steps for each product that allow them to work side by side on the same virtual server. Here’s a quick synopsis of what we will be doing:

  • We will first create a new virtual server in Internet Information Services (IIS) and create a SharePoint portal using our new virtual server.

  • We will then configure MCMS to use the same virtual server as an MCMS Web Entry Point.

  • Finally, we will configure the SharePoint extended virtual server to allow MCMS requests to be handled by MCMS and ignored by the SharePoint ISAPI filters.

SharePoint and MCMS-Managed URLs

Microsoft’s SharePoint is implemented by inserting ISAPI filters into IIS virtual servers. These ISAPI filters intercept all inbound requests as all URLs are managed unlike a typical website where the folder structure is somewhat mirrored in the URL. SharePoint’s managed URLs tell it which portal or WSS site and list, document library, or Web Part the user is interacting with.

Microsoft Content Management Server (MCMS) also utilizes ISAPI filters that are configured as global filters for all incoming requests. One of these ISAPI filters checks each HTTP request against the MCMS database to determine if it is an MCMS request or not. If the MCMS ISAPI filter determines the URL is not an MCMS request, it passes it on to IIS or lower priority ISAPI filters for further processing.

On its own, each product works perfectly. However, when they are used together on the same server, there may be conflicts. For example, if the SharePoint ISAPI filters determine a URL is not consistent with a SharePoint request, it returns an HTTP status code of 404 – File Not Found, as SharePoint assumes all requests are to be consumed by its ISAPI filter, unless explicitly excluded. We’ll go into excluded paths later in this appendix.

The order of steps in configuring a virtual server for hosting a SharePoint site (WSS/SPS) and MCMS is very important. The following assumes Windows SharePoint Services (including SP1), SharePoint Portal Server (including SP1), and Content Management Server (including SP1a) are all installed as well as all requirements for these installations being met.

In this appendix, we will create a SharePoint portal in a virtual server. We’re creating a portal because it provides necessary features, such as customizable search, that we use in Chapter 5, Searching MCMS with SharePoint. Note that all the limitations and steps outlined here apply to WSS as well because SharePoint Portal Server (SPS) relies on the WSS engine to process all URLs.