Service Applications in SharePoint 2010 Andy Nogueira Solutions Architect / Team Lead Microsoft Practice nonlinear creations inc.
Dec 18, 2014
Service Applications in SharePoint 2010
Andy Nogueira
Solutions Architect / Team Lead
Microsoft Practice
nonlinear creations inc.
Services in MOSS 2007 (Recap)
Service Applications Framework
Demo
Questions and Answers
Agenda
Become familiar with the new Service Application (SA) modelUnderstand how sites use the Service Application features
Create, Manage and Use Service Applications
Session Objectives
MOSS 2007(recap)
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)
Shared Services
Application (SSP)
User Profiles
Excel Services
BDC
Search
Shared Services Provider MOSS 2007
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)
Service Applications
Service Applications (SP2010)
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
Farm 3Farm 2Farm 1
http://www.acme.comhttp://intranet
Search
User Profile
s
Search
Excel
UserProfile
s
ManagedMetadata
Service Applications
Architectural ViewService: 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
Service Application Features• A configuration store within the SharePoint 2010
configuration database for application settings
• A common SQL Server database provisioning infrastructure (to use your own database to store data)
• Support for storing data in custom databases that are managed by SharePoint Foundation 2010
• A location to host middle-tier Web services
• A mechanism for provisioning Web services and managing their security
• A service-scoped timer job infrastructure that enables you to perform scheduled operations on your service or on Web applications that consume it
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
ManagementCentral Administration UI
Permissions
PowerShell
Services
Service Application Lifecyle
Installation Provision
Start Instanc
esManage
Demo
Service Applications in SP2010
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 SP sites
Developers should be familiar with
Custom WCF
services
PowerShell
SharePoint admin
API
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
ComponentsBrowser
ConsumerWeb Part
SP W
FEConsumerWeb 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
To Build a Service ApplicationCreate 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
Service Application Installation
Components on serversService 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
Demo
Custom Service Application
Takeaways
Preferred method to create “services” solutions on SharePoint 2010
Create custom Service Applications is not easy (yet)
Requires big learning curve but it’s a “moat” (high barriers of entry)
Lack of documentation and samples (eventually will get better with RTM)
For now, start with a sample solution and modify it to your needs
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
Sample codes and TutorialsMSDN Service Application Framework Samplehttp://msdn.microsoft.com/en-us/library/ee724430%28office.14%29.aspx
Custom SA Sample – Andrew Connellhttp://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/10/building-a-sharepoint-service-application-to-provide-auto-completion-services-for-ajax-enabled-rich-user-controls-%E2%80%93-part-1/
?
Questions and Answers
Thanks to our contributors
Andy [email protected]
Thank You !