windows sharepoint services v3 · windows sharepoint services v3.0 (wss) about this material •...

61
Windows SharePoint Services v3 Key Integration Concepts

Upload: others

Post on 06-May-2020

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Windows SharePoint Services v3

Key Integration Concepts

Page 2: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

The Challenge

How to integrate existing

applications and services with Windows SharePoint Services v3.0 (WSS)

Page 3: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

About this material

• Research:

– How does Project Server 2007

integrate and use Windows

SharePoint Services v3.0?

• Take away:

– What “best practices” can we derive from this integration effort?

Page 4: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Why Use WSS?

• SharePoint provides a user

friendly, consistent, customizable interface to your applications and services

• SharePoint provides rich workflow and task features

• SharePoint provides for user authentication

Page 5: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Areas of Focus

• Intro to Project Server 2007

• Shared Services

• Workflow integration

• Web Services API

• Content Linking and Embedding

• Administration

• Security

• Conclusions

Page 6: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Areas of Focus

• Intro to Project Server 2007

• Shared Services

• Workflow integration

• Web Services API

• Content Linking and Embedding

• Administration

• Security

• Conclusions

Page 7: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Intro to Project Server

• Project Application Service

• Project Sites

• Project Server Interface (PSI)

Page 8: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Areas of Focus

• Intro to Project Server 2007

• Shared Services

• Workflow integration

• Web Services API

• Content Linking and Embedding

• Administration

• Security

• Conclusions

Page 9: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Shared Services

• Some services should be shared

• Services require configuration

• Each web application may require

unique services configuration

• Examples:

– Business Data Catalog

– Project Application Services

Page 10: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

SSP Association

Page 11: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

SPFarm (SharePoint Farm)

WebApplication

AP.ThreeWill.Com

Shared Resource Provider

Shared Service Provider 2

BDC

Payroll

BDC

Benefits

WebApplication

HR.ThreeWill.Com

WebApplication

IT.ThreeWill.Com

WebApplication

Dev.ThreeWill.Com

Shared Resource Provider

Shared Service Provider 1

BDC

Defect Tracking

BDC

CRM

Page 12: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

SPFarm (SharePoint Farm)

SPService

Project Application Service

SPService

Excel Calculation Services

SPServer

Farm Server 1

SPServer

Farm Server 2

SPServiceInstance

Project Application Service running on

Farm Server 2

WebApplication

SharePoint - 80

Shared Resource Provider

Shared Service Provider 1

Project Site

PWA1

Project Site

PWA2

SPSite

PWA1

Associated by ID

Page 13: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Shared Resource Provider

• Internal class name for the Shared

Service Provider

• Provides for services configuration

Page 14: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Shared Resource Provider configuration

• Shared Service Database

– BDC configuration

• Hashtable of properties

– My Site Web App

– My Site Relative Path

• Parent of SPPersistedObjects

– ProjectSites

Page 15: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Shared Resource Provider configuration

Page 16: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

BDC example

• SQLSessionProvider provides

access to the correct SSP database

Page 17: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Project Server Example

• ProjectSite derived from

SPPersisted object

• Parent of ProjectSite set to SSP

• SPPersistedChildCollectionretrieves ProjectSites

Page 18: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Project Application “Shared” Service

• Windows Services wrapper

• Provisions the Queue Service and the Event Service

Page 19: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

What to take away…

• Options for SSP Configuration:

– SPPersistedObject

– Properties Hashtable of the SRP

– SSP Database

• Consider creating your own shared services provider

Page 20: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Areas of Focus

• Intro to Project Server 2007

• Shared Services

• Workflow integration

• Web Services API

• Content Linking and Embedding

• Administration

• Security

• Conclusions

Page 21: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Workflow Integration Requirements

• Manage external entities using

SharePoint workflow features

• Display workflow status and

history of external entities

• Use external security groups or users in Workflow scenarios

Page 22: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

SharePoint Workflow Basics

Based on Lists or Content Types

Page 23: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

SharePoint Workflow

Workflow History

Page 24: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

SharePoint Workflow

• Tasks List for user interaction

Page 25: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Proposal Approval Workflow

• Proposal stored in MS Project

database

• Proposal Reviewers group

defined in MS Project database

• Present Workflow History, Workflow Status, and User

Interaction in SharePoint

Page 26: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Define a proxy list

• Proposal Proxy List

• Hidden ProposalUid field points to the Proposal

• Use custom code to populate to create the list item

Page 27: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Define External User Groups

Page 28: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Start the workflow

Start the Workflow

Build list of approvers

Page 29: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Workflow Execution courtesy of SharePoint

• User interaction via the tasks list

• Workflow history via the workflow history list

Page 30: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Workflow Completion

Page 31: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

External ApplicationSharePoint

External User Group

Approvers

External User

External User A

External User

External User B

External Entity

Proposal

Proxy List Item

Approval Workflow

Workflow Instance

SharePoint User

Domain\User A

SharePoint User

Domain\User A

Page 32: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

What to take away…

• Create a “proxy” list• Proxy List items reference

external objects

• Start the workflow in custom code

• Use SharePoint features for user

interaction and workflow history

• Use List event handlers to update external entities

Page 33: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Break

Page 34: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Areas of Focus

• Intro to Project Server 2007

• Shared Services

• Workflow integration

• Web Services API

• Content Linking and Embedding

• Administration

• Security

• Conclusions

Page 35: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Web Services API

• Derived from SPService

• SPServiceInstance defines contributing servers

Page 36: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Project Server Interface (PSI)

• Exposed as set of Web Services

• Service endpoint provided by the ProjectApplicationService

• Services address is derived by round-robin algorithm across SPServiceInstances

Page 37: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Web Services Context

• PSIProxyBase is base for all PSI

web service proxies

• Context data is added to the

webRequest headers collection in the GetWebRequest override of PSIProxyBase

• SiteGuid, UserGuid, UserNameamong properties transmitted

Page 38: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

What to take away…• Create an SPService

• Create one or more SPServiceInstances

• For Web Service calls use a round-robin algorithm to choose a service instance

• Call on the SPService to build the URI of the web service

• Use the headers collection of the

web request to transmit context

Page 39: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Areas of Focus

• Intro to Project Server 2007

• Shared Services

• Workflow integration

• Web Services API

• Content Linking and Embedding

• Administration

• Security

• Conclusions

Page 40: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Content Linking and Embedding

• Custom Web parts

• Application Pages

• Site Templates

Page 41: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Custom Web Parts

• Data access achieved via Web

Services API

• Web Services API provides for

scalable solution by selecting among one or more SPServiceInstances

• Binaries are GAC deployed

• .Webpart files deployed as part of PWA site template

Page 42: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Base Web Part class

• Base web part provides for web

services access

• Service end point:

– Based on the context (the site)

– Configured as a web part property

Page 43: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Application Pages

• Deployed to the PWA folder

beneath the Layouts folder

• References custom master page

also deployed to the PWA folder

• Includes web.config to add namespaces and controls.

• Master pages include core.css and override with custom css

Page 44: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

PWA Site Template

• Includes .webparts

• Includes site pages

– Use default masterpage

– Include default web parts

– Customizable

Page 45: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

What to take away…

• Create base web part class for

providing access to external data

• Use the SPServiceInstances for

the appropriate web service to allow for scalable web services

• Deploy web parts to the GAC

• Create your own master page and stylesheets for application pages where necessary

Page 46: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Areas of Focus

• Intro to Project Server 2007

• Shared Services

• Workflow integration

• Web Services API

• Content Linking and Embedding

• Administration

• Security

• Conclusions

Page 47: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Administration

Page 48: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

What to take away…

• Liberal use of Application Pages

Page 49: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Areas of Focus

• Intro to Project Server 2007

• Shared Services

• Workflow integration

• Web Services API

• Content Linking and Embedding

• Administration

• Security

• Conclusions

Page 50: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Security

• Users in external applications

are correlated to SharePoint users

• Users are added to external groups

• User ID and User Name is

submitted in the Headers collection of web request calls

Page 51: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Correlating Users

Page 52: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Adding users to external groups

Page 53: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

What to take away…

• Correlate SharePoint users with

external users when necessary

• Use external groups when

necessary

Page 54: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Areas of Focus

• Intro to Project Server 2007

• Shared Services

• Workflow integration

• Web Services API

• Content Linking and Embedding

• Administration

• Security

• Conclusions

Page 55: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Conclusions

• Consider a custom implementation of the Shared Service Provider

• Link SharePoint list items to external entities for Workflow integration

• Use the SPService to configure and manage web services

• Web parts, site pages, application pages provide a view of external data

Page 56: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

More Conclusions…

• Use Application pages to provide

for administrative functions

• Correlate SharePoint users to

external users when necessary

• Add correlated users to external groups using SharePoint user

interface

Page 57: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

What are you taking away

from today’s presentation?

Your Conclusions

Page 58: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Downloads/Resources

Project Server 2007 evaluation

- http://technet.microsoft.com/en-

us/evalcenter/bb738023.aspx

Lutz reflector

- http://www.aisto.com/roeder/dotnet

GACView

- http://www.nirsoft.net/dot_net_tool

s/gac_viewer.html

Page 59: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Other Next Steps

• Visit our homepage –www.threewill.com

• Visit the ThreeWill blog –www.worktogetherbetter.com

• Visit our technical blog –www.implementingsharepoint.com

• Upcoming Seminars –http://www.threewill.com/events/

• Subscribe to ThreeWill Newsletter –http://www.threewill.com/newsletter/

• Free video on Exploring SharePoint 2007 –http://www.threeill.com/video/

Page 60: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Other Next Steps

• Visit our SharePoint Resource

Guide –http://www.wssresourceguide.com

• Visit our SharePoint Showcase Site (featuring the SharePoint Application Templates)http://www.sharepointshowcase.com

Page 61: Windows SharePoint Services v3 · Windows SharePoint Services v3.0 (WSS) About this material • Research: ... allow for scalable web services • Deploy web parts to the GAC •

Questions?