![Page 1: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/1.jpg)
Toronto | Ottawa | Calgary | Regina | New York
Service Applications in SharePoint 2010
Andy Nogueira, MCPD, MCITP, MCTS, MCAD
Solutions Architect / Team Lead / Developer
nonlinear creations Inc. (www.nonlinear.ca)
![Page 2: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/2.jpg)
Today’s Agenda
1. Services in MOSS 2007
2. Service Application (SA) Framework
3. Demo
4. Custom Service Application
5. Custom SA Demo
6. Questions and Answers
![Page 3: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/3.jpg)
Objectives
Become Familiar with the new
Service Application (SA)
model
Understand how sites use the
Service Application
featuresCreate, Manage and Use Service
Applications
Session Objectives
![Page 4: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/4.jpg)
Services inMOSS 2007
Recap
![Page 5: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/5.jpg)
ASP.NET 2.0 (AJAX)
Windows 2003
IIS
NET Framework 3.0
WSS 3.0
Document Management Security Content Types Windows Workflow
SQL Server
MOSS 2007 Enterprise
EnterpriseSearch
User Profiles
LOB Integration
(BDC)
Excel Services
Enterprise Content
Management
My SitesRecords
Management
SharePoint 2007 (MOSS)
![Page 6: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/6.jpg)
Shared Services Application (SSP)
User Profiles
Excel Services BDC Search
Shared Services Provider (SSP)
Web Application
1
Web Application
2
Web Application
3
![Page 7: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/7.jpg)
So, What was “bad“ about SSP’s ?
SSP’s• Big improvement, but some
limitations
All or nothing
• Search / Profiles / Excel / BDC
Not extensible
• No custom SSP
No granularity
• Web application tied to specific SSPs
Sharing across farms
• Tied to a single farm (shared-farm SSP’s possible but tricky)
![Page 8: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/8.jpg)
SharePoint 2010 Service
Applications
The New Model
![Page 9: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/9.jpg)
Farm 3Farm 2Farm 1
http://www.acme.com http://intranet
Search
User Profile
s
Search
Excel
UserProfile
s
ManagedMetadata
Service Applications
![Page 10: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/10.jpg)
So, What’s good about Service Applications ?
Flexibility• New services model much more
flexible
A la carte • Just pick the one you need
Common Framework
• Build custom using framework
Sharing • Single farm or shared across farms
Scalability• Entire farms can be dedicated to
service hosting and computing
![Page 11: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/11.jpg)
Architectural View
Service: Actual program (binaries)deployed to servers in farm
Service Application
Service Proxy Service Proxy
Web Part, Pages(Service Consumer)
*.SVC’s, PowerShell Cmdlets(Service Consumer)
Service Machine Instance: Actual instance of the running service binaries on a server
Service Application: Configuration of the servicein a farm
Service Application Proxy:Reference to the Service Application
Service Consumer: Bits that utilize the service’s logic
![Page 12: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/12.jpg)
Service Application Features
Configuration Store
• A configuration store within the SharePoint configuration database for application settings
Database Provisioning
• A common SQL Server database provisioning infrastructure
Custom Database
• Support for storing data in custom databases that are managed by SharePoint
Web Services• A location to host middle-tier Web services
and for provisioning and managing their security
Processing
• A service-scoped timer job infrastructure that enables you to perform scheduled operations on your service or on Web applications that consume it
![Page 13: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/13.jpg)
Service Platform Features
Core Infrastructure
Settings (config database)
Web service provisioning
Database provisioning
Service discovery
Integrated round-robin load balancer
Claims based authentication
Backup & restore
Management
Central Administration UI
Permissions
PowerShell
![Page 14: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/14.jpg)
Services
![Page 15: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/15.jpg)
Service Application Lifecyle
Installation
Provision
Start Instances
Manage
![Page 16: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/16.jpg)
SharePoint 2010 Service
Applications
Demo
![Page 17: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/17.jpg)
Creating Custom Service
Applications in SharePoint 2010
Custom Service Applications
![Page 18: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/18.jpg)
Creating Custom Services
Developers are free to create their own services
Allows developers to provide richer integration between a 3rd
party system and SharePoint
Allows for sharing data across SharePoint sites
![Page 19: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/19.jpg)
Create Custom Services
Do Provide specialized computations & analytics
Share data across sites & site collections
Execute long running operations
Requires a robust scale out strategy
Common management and provisioning infrastructure
Don’t Features specific to a particular site or site collection
Features specific to site template
![Page 20: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/20.jpg)
Developers should be familiar with
Custom WCF
services
PowerShell
SharePoint admin API
![Page 21: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/21.jpg)
To Build a Service Application
Create a service application
Create a WCF service application
endpoint
Write the service application
installation code
Install and provision the service application
Create the service application proxy
Write the service application proxy installation code
Install and provision the service
application proxy
Create the service application consumers
Install, deploy, and test the service
application consumers
![Page 22: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/22.jpg)
Service Application ComponentsBrowser
ConsumerWeb Part
SP W
FE
ConsumerWeb Part
Service Application Proxy
WCF Contract(*.svc)
* .asmx …
Service Logic (* .dll)
SP A
PP
SER
VER
Config DB Custom DBContent DB
SQ
LSER
VER
Client App
![Page 23: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/23.jpg)
Service Application Installation
Components on servers
Service Application components must be
deployed to application servers
Proxies and consumers must be deployed to
WFE’s
Installation OptionsCustom MSI’s
Features
PowerShell Cmdlets
* all require custom code
![Page 24: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/24.jpg)
CustomService
Application
Demo
![Page 25: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/25.jpg)
Takeaways
Service Applications is here to stay (All MS services created using SA Framework)
Create custom Service Applications is not easy.
Requires big learning curve to create custom
Still lack of documentation and samples
Start with a sample solution and modify it to your needs
![Page 26: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/26.jpg)
Links and Resources
Service Application Frameworkhttp://msdn.microsoft.com/en-us/library/ee536263(v=office.14).aspx
SharePoint 2010 Beta Developer Center http://msdn.microsoft.com/en-us/sharepoint/ee514561.aspx Get Started Developing on SharePoint 2010http://msdn.microsoft.com/en-ca/sharepoint/ee513147.aspx
![Page 27: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/27.jpg)
Sample codes and Tutorials
• MSDN Service Application Framework Sample• http://msdn.microsoft.com/en-us/library/ee724430%28office.14%29.asp
x
• Custom SA Sample – Andrew Connell• http://www.criticalpathtraining.com/Members/Pages/default.aspx
• Building a SharePoint Service Application to Provide Auto-completion Services for AJAX-enabled Rich User Controls (4 Parts)• http://sharepointsolutions.com/sharepoint-help/blog/index.php/2009/1
0/building-a-sharepoint-service-application-to-provide-auto-completion-services-for-ajax-enabled-rich-user-controls-%E2%80%93-part-1/
![Page 28: Service Applications in SharePoint 2010 - Andy Nogueira - TSPUG - July 2010](https://reader034.vdocuments.mx/reader034/viewer/2022051816/5451f984af7959ed518b5972/html5/thumbnails/28.jpg)
?
Questions and Answers