XML Web Services Tuc Goodwin 2/9/20161
Agenda What is an XML Web Service? Web Services Business Benefits Changing Application Architectural Model Web Site vs. Web Service Steps to calling a Web Service SharePoint Web Services
What is XML Web Services? Source:
Web Services Business Benefits Enables best-of-breed business integration Knits together technology “islands” Federation provides consistent model and organizations control their own information and applications Resilient Changes in implementation Choice in transport and encoding Flexible application topology
Changing Application Architectural Model Your Application.NET Framework Clients Servers Services XML Web Services ApplicationApplicationApplication
Web Site vs. Web Service Web Sites Web pages viewed in a browser by people XML Web Services Used by computer applications Reusable pieces of software Interact programmatically over the network through industry recognized standards (XML and SOAP) XML Web services can be combined with each other and other applications to build intelligent interactive.NET experiences Source:
Steps to Calling a Web Service 1. Add Web Service Reference 2. Add Credentials (if necessary) 3. Instantiate the Web Service Object 4. Invoke the Web Service methods 5. Process the Results
SharePoint Web Services (part I) - Administrative methods such as creating and deleting sites - Methods for working with alerts - Methods for retrieving schemas and data - Methods for working with Document Workspaces - Methods for working with user interface forms - Methods for working with picture libraries - Methods for working with lists - Methods for working with Meeting Workspaces
SharePoint Web Services (part II) - Methods for working with SharePoint Services security - Methods used by Windows SharePoint Portal Server - Contains a single method to retrieve site templates - Methods for working with users and groups - Methods for working with file versions - Methods for working with views of lists - Methods for working with Web Parts - Methods for working with sites and subsites
Demo This demo was adapted from an online article by Mike Gunderloy, Coder To Developer (ISBN: X ) The full article can be found at
September 2005 Presentation The samples from 2005 are loaded on our SharePoint site at The example I am used came from the book Visual Basic.NET Tips & Techniques by Kris Jamsa (ISBN: ) 2/9/201611
Creating a Web Service 2/9/201612
Coding a Web Service 2/9/ Public Function DateOnly() As String DateOnly = Date.Today.Date.ToString End Function
Testing a Web Service 2/9/201614
Consuming a Web Service from a Web Form 2/9/ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim myWebService As New localhost.Service1 If Me.RadioButton1.Checked Then Me.TextBox1.Text = myWebService.DateTime If Me.RadioButton2.Checked Then Me.TextBox1.Text = myWebService.DateOnly If Me.RadioButton3.Checked Then Me.TextBox1.Text = myWebService.TimeOnly If Me.RadioButton4.Checked Then Me.TextBox1.Text = myWebService.DayOfWeek End Sub
Summary We… Consumed a Web Service 2/9/201616
Other Resources msdn.microsoft.com/net support.microsoft.com/webcasts
Next Time… We will continue to build from here… 2/9/201618
Questions? 2/9/201619