xml web services tuc goodwin 8/10/20151. agenda review: what is an xml web service? review steps to...
TRANSCRIPT
XML Web Services
Tuc Goodwin
04/19/23 1
Agenda
Review: What is an XML Web Service? Review Steps to calling a Web Service SharePoint Web Services
Upcoming Schedule
WSDL, Schemas, and Proxies! (Oh, My) Serializations Intro to C# Debugging .NET 2.0 Creating Workflows in .NET 3.0 Object Thinking
Review: What is XML Web Services?
Source: www.microsoft.com/net/basics/whatis.asp
Review: 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
Demo
This demo was adapted from an online article by Mike Gunderloy,
Coder To Developer(ISBN: 078214327X )
Creating a Web Service
04/19/23 10
Coding a Web Service
04/19/23 11
<WebMethod()> Public Function DateOnly() As String DateOnly = Date.Today.Date.ToString End Function
Testing a Web Service
04/19/23 12
Consuming a Web Service from a Web Form
04/19/23 13
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
More Demo
Let’s look at some code!
Summary
We…
Consumed a Web Service
04/19/23 15
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
Next Time…
We will continue to build from here…
WSDL, Schemas, and Proxies! (Oh, My)
04/19/23 17
Questions?
04/19/23 18