+ All Categories
Home > Documents > XML Web Services

XML Web Services

Date post: 21-Jan-2016
Category:
Upload: studs
View: 18 times
Download: 0 times
Share this document with a friend
Description:
XML Web Services. Tuc Goodwin. 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?. - PowerPoint PPT Presentation
Popular Tags:
19
XML Web Services Tuc Goodwin 07/04/22 1
Transcript
Page 1: XML Web Services

XML Web Services

Tuc Goodwin

04/21/23 1

Page 2: XML Web Services

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

Page 3: XML Web Services

What is XML Web Services?

Source: www.microsoft.com/net/basics/whatis.asp

Page 4: XML Web Services

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

Page 5: XML Web Services

Changing Application Architectural ModelYour ApplicationYour Application

.NET Framework.NET Framework

ClientsClients ServersServers ServicesServices

XML Web ServicesXML Web Services

ApplicationApplication ApplicationApplication ApplicationApplication

Page 6: XML Web Services

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: www.microsoft.com/net/basics/faq.asp

Page 7: XML Web Services

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

Page 8: XML Web Services

SharePoint Web Services (part I) http://server:xxxx/_vti_adm/Admin.asmx - Administrative methods such as

creating and deleting sites http://server/_vti_bin/Alerts.asmx - Methods for working with alerts http://server/_vti_bin/DspSts.asmx - Methods for retrieving schemas and

data http://server/_vti_bin/DWS.asmx - Methods for working with Document

Workspaces http://server/_vti_bin/Forms.asmx - Methods for working with user interface

forms http://server/_vti_bin/Imaging.asmx - Methods for working with picture

libraries http://server/_vti_bin/Lists.asmx - Methods for working with lists http://server/_vti_bin/Meetings.asmx - Methods for working with Meeting

Workspaces

Page 9: XML Web Services

SharePoint Web Services (part II) http://server/_vti_bin/Permissions.asmx - Methods for working with

SharePoint Services security http://server/_vti_bin/SiteData.asmx - Methods used by Windows

SharePoint Portal Server http://server/_vti_bin/Sites.asmx - Contains a single method to retrieve site

templates http://server/_vti_bin/UserGroup.asmx - Methods for working with users

and groups http://server/_vti_bin/versions.asmx - Methods for working with file versions http://server/_vti_bin/Views.asmx - Methods for working with views of lists http://server/_vti_bin/WebPartPages.asmx - Methods for working with Web

Parts http://server/_vti_bin/Webs.asmx - Methods for working with sites and

subsites

Page 10: XML Web Services

Demo This demo was adapted from

an online article by Mike Gunderloy,

Coder To Developer(ISBN: 078214327X )

The full article can be found at http://www.developer.com/lang/article.php/2233091

Page 11: XML Web Services

September 2005 Presentation

The samples from 2005 are loaded on our SharePoint site at http://69.41.237.216/VBNETSIG/

The example I am used came from the book Visual Basic.NET Tips & Techniques by Kris Jamsa (ISBN:0072223189 )

04/21/23 11

Page 12: XML Web Services

Creating a Web Service

04/21/23 12

Page 13: XML Web Services

Coding a Web Service

04/21/23 13

<WebMethod()> Public Function DateOnly() As String DateOnly = Date.Today.Date.ToString End Function

Page 14: XML Web Services

Testing a Web Service

04/21/23 14

Page 15: XML Web Services

Consuming a Web Service from a Web Form

04/21/23 15

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

Page 16: XML Web Services

Summary

We…

Consumed a Web Service

04/21/23 16

Page 17: XML Web Services

Other Resources

www.microsoft.com/net msdn.microsoft.com/net www.gotdotnet.com support.microsoft.com/webcasts www.dnug.net www.devx.com/dotnet/ www.thedotnetmag.com www.winnetmag.com www.microsoft.com/mspress

Page 18: XML Web Services

Next Time…

We will continue to build from here…

04/21/23 18

Page 19: XML Web Services

Questions?

04/21/23 19


Recommended