Building XML Web Services - PowerPoint PPT Presentation

1 / 35
About This Presentation
Title:

Building XML Web Services

Description:

Introduction to XML Web Services. Building and Using XML Web ... URL-addressable set of functionality exposed over a network. Based on Internet technologies ... – PowerPoint PPT presentation

Number of Views:70
Avg rating:3.0/5.0
Slides: 36
Provided by: doff
Category:

less

Transcript and Presenter's Notes

Title: Building XML Web Services


1
Building XML Web Services Using .NET Technology
Speaker ???, Doff Park Feel_at_NET Senior
Consultant ForAce, WebTime ???? MCSD, MCT, CTT
2
Agenda
  • Introduction to XML Web Services
  • Building and Using XML Web Services
  • Using Visual Studio .NET
  • Conjunction with COM Services
  • QA

Building XML Web Services Using .NET Technology
3
Introduction to XML Web Services
  • Evolution of Distributed Applications
  • Introducing Web Services
  • Overview of Web Service Architectures
  • The Web Service Provider
  • The Web Service Consumer
  • The Web Service Broker
  • Overview of Using UDDI
  • The Web Service Description Language
  • The Web Service Discovery
  • The Web Service Proxies
  • Using XML Web Services in Local and Global Area

Building XML Web Services Using .NET Technology
4
Introduction to XML Web Services
Evolution of Distributed Applications
  • What is a distributed application?
  • Why do we need distributed applications?
  • Distributed applications as service providers

Page 4
Building XML Web Services Using .NET Technology
5
Introduction to XML Web Services
Introducing Web Services
  • URL-addressable set of functionality exposed over
    a network
  • Based on Internet technologies
  • Building blocks
  • The future of distributed applications

Page 5
Building XML Web Services Using .NET Technology
6
Introduction to XML Web Services
Overview of Web Service Architectures - 1
Page 6
Building XML Web Services Using .NET Technology
7
Introduction to XML Web Services
Overview of Web Service Architectures - 2
UDDI
SOAP
SOAP
SOAP
Page 7
Building XML Web Services Using .NET Technology
8
Introduction to XML Web Services
Overview of Web Service Architectures - 3
Web Service
Web Service
Firewall
Firewall
Internet
Web Service Consumer
Firewall
Web Service
Page 8
Building XML Web Services Using .NET Technology
9
Introduction to XML Web Services
The Web Service Provider
  • Web Servers
  • The .NET Common Language Runtime

Building XML Web Services Using .NET Technology
Page 9
10
Introduction to XML Web Services
The Web Service Consumer
  • Minimum functionality
  • Service location
  • Proxies
  • Asynchronous calls

Page 10
Building XML Web Services Using .NET Technology
11
Introduction to XML Web Services
The Web Service Broker
  • Interactions between brokers and providers
  • Interactions between brokers and consumers
  • UDDI registries

Page 11
Building XML Web Services Using .NET Technology
12
Introduction to XML Web Services
Overview of Using UDDI
Developer
Consumer
Web Service
UDDI Services
Page 12
Building XML Web Services Using .NET Technology
13
Introduction to XML Web Services
The Web Service Description Language
  • WSDL is used for describing a Web service
  • WSDL file acts as a contract between a Web
    service consumer and a Web service

Page 13
Building XML Web Services Using .NET Technology
14
Introduction to XML Web Services
The Web Service Discovery
  • Disco is a mechanism for enumerating the Web
    services that are available at a particular
    endpoint and locating the service contracts for
    the enumerated Web services
  • Locating Discovery Document Using Dosco.exe
  • disco /outd\disco /uadmi /ppassword ?
  • http//domain/catalog.disco
  • Programmatic Discovery

System.Web.Services.Discovery
DiscoveryClientProtocol
DiscoveryDocument
DiscoveryClientResultCollection
Page 14
Building XML Web Services Using .NET Technology
15
Introduction to XML Web Services
The Web Service Proxies
  • Proxies are entities that act as intermediaries
    for other entities
  • wsdl http//domain/path/service1.asmx?wsdl
  • wsdl /lVB /protocolHttpGet /outSample.vb ?
  • http//domain/path/service1.asmx?wsdl

Page 15
Building XML Web Services Using .NET Technology
16
Introduction to XML Web Services
Using XML Web Services in Local Global Area
DB Server SQL Server
Local Area
Page 16
Building XML Web Services Using .NET Technology
17
Building and Using XML Web Services Using
Visual Studio .NET
  • Creating a Web Service Project
  • The Components of a Web Service Project
  • Exposing Web Service Methods
  • Creating a Web Service Consumer Project
  • Adding a Web Reference
  • Viewing a WSDL
  • Imported Files
  • Creating a Web Service Proxy and Calling Web
    Methods
  • Files Needed to Deploy Web Services
  • Demo Building and Using StateU XML Web Service

Building XML Web Services Using .NET Technology
18
Building and Using XML Web Services Using Visual
Studio .NET
Creating a Web Service Project
Page 18
Building XML Web Services Using .NET Technology
19
Building and Using XML Web Services Using Visual
Studio .NET
The Components of a Web Service Project
Built in an Assembly
Discovery Source
Page 19
Building XML Web Services Using .NET Technology
20
Building and Using XML Web Services Using Visual
Studio .NET
Exposing Web Service Methods
ltWebMethod()gt Public Sub DropClass(ByVal
pStudentID As Integer, _ ByVal
pClassID As String) If Not Enrolled(pStudentID
, pClassID) Then Throw New
Exception(pClassID " is not enrolled") End
If If Examined(pStudentID, pClassID) Then
Throw New Exception(pClassID " was
examined") End If Dim strSQL As String
"DELETE Enrollment WHERE StudentID "
_ pStudentID " AND ClassID '"
pClassID "'" objDat.SetStateU(strSQL) End
Sub
Page 20
Building XML Web Services Using .NET Technology
21
Building and Using XML Web Services Using Visual
Studio .NET
Creating a Web Service Consumer Project
  • Any type of Application can consume Web services
  • Windows Applications
  • Class Libraries
  • Windows Control Libraries
  • ASP .NET Web Applications
  • ASP .NET Web Services
  • Web Control Libraries
  • Console Applications
  • Windows Services

Page 21
Building XML Web Services Using .NET Technology
22
Building and Using XML Web Services Using Visual
Studio .NET
Adding a Web Reference
Page 22
Building XML Web Services Using .NET Technology
23
Building and Using XML Web Services Using Visual
Studio .NET
Viewing a WSDL
Page 23
Building XML Web Services Using .NET Technology
24
Building and Using XML Web Services Using Visual
Studio .NET
Imported Files
Discovery
WSDL
Page 24
Building XML Web Services Using .NET Technology
25
Building and Using XML Web Services Using Visual
Studio .NET
Creating a Web Service Proxy and Calling Web
Methods
  • Declare a variable as Web service name to create
    a Web service Proxy
  • Dim objBiz As New StateU.bizStateU()
  • Calling Web methods
  • Dim dstTranscript As DataSet
  • dstTranscript objBiz.GetTranscript(txtStudentID.
    Text)
  • objBiz.AddClass(txtStudentID.Text,
    lstClasses.Text)
  • objBiz.DropClass(txtStudentID.Text,
    lstClasses.Text)
  • objBiz.TransferClass(txtStudentID.Text,
    From.Text, To.Text)

Page 25
Building XML Web Services Using .NET Technology
26
Building and Using XML Web Services Using Visual
Studio .NET
Files Needed to Deploy Web Services
Page 26
Building XML Web Services Using .NET Technology
27
Building and Using XML Web Services Using Visual
Studio .NET
Demo Building and Using StateU XML Web Service
Page 27
Building XML Web Services Using .NET Technology
28
Conjunction with COM Services
  • Introduction to COM Services
  • Principal Role of XML Web Services and COM
    Services
  • Using XML Web Services with
  • COM Application in Local and Global Area
  • Demo Building and Using StateU XML Web Service
  • and Serviced Components

Building XML Web Services Using .NET Technology
29
Conjunction with COM Services
Introduction to COM Services
  • COM is the application infrastructure in a
    multi-user environment that compose of the
    services that enable many users to access the
    application and underlying data at the same time.
  • COM Services
  • Transactions
  • Resource Management
  • Just-in-Time(JIT) Activation
  • Object Pooling
  • Compensating Resource Managers
  • Security
  • Synchronization
  • Loosely Coupled Events
  • Queued Components

Core Services
Page 29
Building XML Web Services Using .NET Technology
30
Conjunction with COM Services
Principal Role of XML Web Services and COM
Services
XML Web Services
COM Services
  • Infrastructure of distributed applications
  • Transaction Management
  • Resource Management
  • Enforcing Security
  • Supports standard protocol
  • Exposing set of functionality against the
    firewall
  • Platform independent Services

Page 30
Building XML Web Services Using .NET Technology
31
Conjunction with COM Services
Using XML Web Services with COM Applications in
Local Global Area
Local Area
Page 31
Building XML Web Services Using .NET Technology
32
Conjunction with COM Services
Demo Building and Using StateU XML Web Service
and Serviced Components
Page 32
Building XML Web Services Using .NET Technology
33
Please allow me to omit part of more details, as
it is too long to take up the subject in
full. For more information about XML Web
services and COM services, go to Microsoft
Certified Technical Education Center(CTEC) and
take the course below. 2524 Developing XML Web
Services Using Microsoft ASP .NET 2557 Building
COM Applications Using Microsoft .NET
Enterprise Services
Building XML Web Services Using .NET Technology
34
QA
Biz doff_at_feelanet.com msn bpark_at_hanafos.com www.
feelanet.com www.forace.net www.wtime.net
Building XML Web Services Using .NET Technology
35
Thanks for your patience!
Write a Comment
User Comments (0)
About PowerShow.com