Вы находитесь на странице: 1из 4

Programming Web Services - Introduction & SOA!

DarkSwitch 2010

SOA (Service Oriented Architecture) by Wikipedia


http://en.wikipedia.org/wiki/Service-oriented_architecture

Definition: SOA is a flexible set of design principles used during the phases of system
development and integration. A deployed SOA-based architecture will provide a loosely-
integrated suite of services that can be used within multiple business domains.

Service-orientation requires loose coupling of services with operating systems, and other
technologies that underlie applications.

SOa separates functions into distinct units, or services, which developers make accessible
over a network in order to allow users to combine and reuse them in the production of
applications.

These services and their corresponding consumers communicate with each other by
passing data in a well-defined, shared format, or by coordinating an activity between two
or more services.

Introduction and SOA (Service-Oriented Architecture) by Matskin lecture


1
http://www.ict.kth.se/courses/ID2208/2010/lectures/Introduction2010.pdf

1. What are services? (Page 12)

Software As service (SaaS) is


a software application delivery model
where
• a software vendor develops a software application and
• hosts and operates the application
for use by
• its customers.

2. Web technologies
2.1 Remote clients
Using the web browser as a client.
Wrapping local information systems to support access channels.

2.2 Applets
Applets are Java programs that can be embedded in an HTML documents
When the document is downloaded the program is executed by Java Virtual Machine
(JVM)
The way to turn the browser into a client is to send the client code as an applet

2.3 Common Gateway Interface (CGI)

CGI is a standard mechanism that enables HTTP servers to interface with external
applications
CGI assigns programs to URLs, so when the URL is invoked the program is executed.

2.4 Servlets

V1.0 Last modification: ! Page 1


Programming Web Services - Introduction & SOA! DarkSwitch 2010

Servlets are invoked directly by embedding servlet-specific information within HTTP


request.
Servlets run as threads of Java server rather than independent process and they run as
part of Web server.

3. Application servers
Application servers
! are equivalent to the middleware platforms,
but they:
• Incorporate the Web as a key access channel to the service implemented
• using the middleware

4. Web services

Definition: Web services: “Web services are loosely coupled software components
delivered over the Internet via standards based technologies like XML, and
SOAP” (Garner)

4.1 Web services Advantages


1. Operate using open, text-based standards
2. Promote a modular approach to programming
3. Significantly reduce the cost of enterprise application integration and B2B
communications
4. Can be implemented incrementally

5. Service-oriented Architecture (SOA)

Definition. SOA: is a form of distributed systems architecture that is typically


characterized by the following properties:
1. Logical view of sources
2. Message exchange between requester and provider.
3. Meta data Description oriented
4. Small number of operations, large and complex messages
5. Used over a network
6. Platform neutral

5.1 Individual roles

V1.0 Last modification: ! Page 2


Programming Web Services - Introduction & SOA! DarkSwitch 2010

Service provider: Is who implements service and make it available on the internet

Service requestor: is who utilizes existing web service by opening network connection
and sending (XML) request

Service registry: Is who place for publishing new services and finding existing ones.

5.1 Web services Architecture (protocol stack)

Service Transport: Transporting


messages between applications
(HTTP, SMTP, FTP).

XML messaging: Encoding


messages in a common XML format
(SOAP)

Service description: Describing the


public interface to a specific service
(WSDL)

Service discovery: Centralizing services into a common registry. (UDDI)

5.2 SOAP, UDDI and WSDL in Web Service interaction

1. Client queries registry to locate services. (UDDI)


2. Registry refers client to WSDL document
3. Client accesses WSDL document

V1.0 Last modification: ! Page 3


Programming Web Services - Introduction & SOA! DarkSwitch 2010

4. WSDL provides data to interact with Web Service


5. Client sends SOAP-message request
6. Web Service returns SOAP-message response.

Service Request perspective:


1. Find service via UDDI
2. Retrive service description file: WSDL
3. Create SOAP client
4. Invoke remote service

Service provider perspective


1. Create core function
2. Create SOAP service wrapper
3. Create WSDL service description
4. Deploy service
5. Register new service via UDDI

5.3 Web service interoperability stack

V1.0 Last modification: ! Page 4

Вам также может понравиться