Download presentation
Presentation is loading. Please wait.
Published byClarissa Black Modified over 9 years ago
2
Zlatan Dzinic Principal Consultant Microsoft Most Valuable Professional - SharePoint Business Connexion
3
Session Objectives and Takeaways Audience: Developers who want to learn more about building services for SharePoint Session Objectives: To understand the different ways in which you can develop web services for SharePoint Provide some guidance around native, ASMX, and WCF services for SharePoint 2007 Level 400 means: You’ve got enough development experience We will walk through concepts and code You understand at least basic concepts of services You have a general willingness to toil and occasionally be frustrated
4
Agenda Custom app development and SharePoint SharePoint Web services Custom Web services Futures Summary Q & A
5
Custom App Development and SharePoint
6
SharePoint? Development Platform? Microsoft Windows 2003/2008 SQLServerSQLServer IISIIS.NET Framework ASP.NETASP.NETWFWF Windows SharePoint Services MOSSMOSS Custom Solutions VS/SPDVS/SPD InternetInternet LOB Systems IntranetIntranet …… - 650,000 SharePoint Developers WW
7
Your Development Environment Getting Started Windows Server 2003 or 2008 WSS 3.0 SP1 MOSS 2007 (Standard/Enterprise/FIS) SP2.NET Framework 3.5 SP1 Visual Studio 2008 SP1 VSeWSS 1.2 or 1.3 Optional Expression Blend (WPF or Silverlight UI development) SharePoint Designer (Master pages, custom field types) Silverlight Tools for VS 2008 SP1 (Silverlight solution development)
8
SharePoint Web Services
9
Provide programmatic access to key SharePoint functionality Work with lists, Excel services, business data catalog, etc. Both admin and non- admin services available Cannot be accessed anonymously Windows Credentials are required
10
SharePoint Web Services (cont’d) Take caution when writing custom services You could write one when the service already exists Think about type of reference Creating a service increases portability Referencing DLL increases performance (but you’re restricted to server-only deployment) SharePoint Virtual Directories _vti_bin_vti_adm Things you can do in WSS sitesThings you can do in Central Admin http://server/site/_vti_bin/service.asmx * Note the path to the site! http://server:1234/_vti_adm/service.asmx * Note the PORT! C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\isapi C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\admisapi
11
Exploring the Native SharePoint Web Services
12
Common Usage Document and asset management Create or store images Document and form libraries Read/write list data Enhance applications using DM capabilities Site management Create sites dynamically Add users programmatically Custom lists Create and populate custom lists Microsoft Office 2003 and 2007 Check In/Out Documents
13
Development Methodology Native SharePoint Web Service Get familiar with the available services Create your client Discover the services Consume the service in your app Through service integration Through DLL reference Deploy your app Windows Server SharePointSharePoint ClientClient 11 Microsoft.SharePoint.dll 22
14
Consuming a Native SharePoint Web Service
15
Custom Web Services
16
ASP.NET and WCF You can create either ASMX or WCF Web services SharePoint supports ASMX natively Both are supported through isolated Web app domain Deployment to hive requires additional service configuration Security considerations include cross-domain policy files
17
Consuming Custom Services No different than other web services Create a Web Reference Write some code Here’s how to call a custom web service deployed to the _layouts virtual directory which creates sub sites
18
Development Methodology Custom ASP.NET Web Service Create and build your service Test the service Deploy the service To SharePoint Hive (with configurations) To Isolated Web App Domain Test in deployed environment Create your client Discover the services Consume the service in your app Deploy your client Windows Server SharePointSharePoint ClientClient AppDomainAppDomain 11 22
19
Creating the ASMX Web Service Deploying to SharePoint Hive In VS 2008, create an ASP.NET Web Service Copy the DLL to the GAC and make sure you add a fully qualified reference to it in your ASMX file Run the disco tool against the ASMX file to create a.dsco and.wsdl file Amend the files to work with SharePoint Append the files with.aspx and copy to ISAPI folder (copy ASMX and the two ASPX files) List in SPDISCO.ASPX file
20
Creating the ASMX Web Service Deploying to SharePoint Hive In VS 2008, create an ASP.NET Web Service Copy the DLL to the GAC and make sure you add a fully qualified reference to it in your ASMX file Run the disco tool against the ASMX file to create a.dsco and.wsdl file Amend the files to work with SharePoint Append the files with.aspx and copy to ISAPI folder (copy ASMX and the two ASPX files) List in SPDISCO.ASPX file
21
Developing and Consuming a Custom ASP.NET Web Service
22
Development Methodology Custom WCF Web Service Create and build your service Test the service Deploy the service To SharePoint Hive (with configurations) To Isolated Web App Domain Test in deployed environment Create your client Discover the services Consume the service in your app Deploy your client Windows Server SharePointSharePoint ClientClient AppDomainAppDomain 11 22
23
Developing and Consuming a Custom WCF Service
24
Futures
25
Streaming Services Web Part as Host.NET Assembly/ Web Part SP OM/External Data Silverlight and SharePoint Integrating Custom Services
26
SharePoint, Silverlight & Custom Services
27
Windows Azure
28
Windows Azure - Services Windows Azure exposes services Blob storage Table storage Queues Services can be exposed via Web Role Worker Role can consume services Scheduled or command initiated tasks can interact with SharePoint web services
29
Summary
30
You have a number of options when developing services for SharePoint Range from native Web services to custom services to services in the cloud Be sure to evaluate needs and design for custom services against existing Web services Explore both native and custom services—trying both ASMX and WCF to test the difference The future will see more development in the area of Azure SharePoint Services and certainly more Silverlight integration with services
32
Win! LifeCam Show Ultra-Thin Mobile Design World-Class High Definition Optics Question: {Enter the qualifying question here / or find another way to select your winner} Please attend other business productivity sessions Office and SharePoint track (OFC) Unified Communications (UNC)
34
Additional Resources Blogs http://dotnet.org.za/zlatan http://blogs.msdn.com/steve_fox/default.aspx http://blogs.msdn.com/sharepoint/ Books Microsoft SharePoint 2007 Development Unleashed (Sams) Real World SharePoint Development (Wrox) Professional SharePoint Developing using Silverlight 2 (Wrox) MSDN http://msdn.microsoft.com/en-us/sharepoint/default.aspx http://msdn.microsoft.com/en-us/office/aa905503.aspx
35
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.