Unit I
Unit I
Unit I
SERVICE ORIENTED
ARCHITECTURE
INSTITUTE VISION AND MISSION
VISION OF THE INSTITUTE:
To achieve a prominent position among the top technical institutions.
Web services are the types of internet software that uses standardized
messaging protocol over the distributed environment. It integrates the web-
based application using the REST, SOAP, WSDL, and UDDI over the
network. For example, Java web service can communicate with .Net
application.
o The web service must be accessible over the internet. o The web service
is discoverable through a common mechanism like UDDI. o It must be
interoperable over any programming language or Operating System.
How does data exchange between applications?
Request
—T-
Application A Web Services
<-
Response
There are two popular formats for request and response XML and
JSON.
1. <getDetail>
2. <id>DataStructureCourse</id>
3. </getDetail>
Now a question arises, how does the Application A know the format of Request
and Response?
The answer to this question is "Service Definition." Every web service offers a
service definition. Service definition specifies the following:
Primitive Meaning
In this section, we will learn how to deal with WSDL file in SoapUI.
Features of WSDL
o It is an XML based language that defines how to interact with an XML based
service in SoapUI.
o It is used to configure nodes in the SOAP domain. o It is used to describes the
functional characteristics of web service.
o It is used to set a defined endpoint in web service with a set of input, output,
and fault messages.
o WSDL is an XML-based language and it is platform-independent. o It is
pronounced as wiz-dull and is written as W-S-D-L.
1. <definitions>
2. <types>
3. Definition of types goes here.
4. </types>
5.
6. <message>
7. Definition of a message goes here.
8. </message>
9.
10. <portType>
11. <operation>
12. Definition of an operation goes here.
13. </operation>
14. </portType>
15.
16. <binding>
17. Definition of a binding goes here.
18. </binding>
19.
20. <service>
21. Definition of service goes here.
22. </service>
23. </definition>
We can also add other elements such as extension elements and service
elements combined into a single WSDL document with possible
definitions of multiple web services.
The following are the four major transmissions of the WSDL that
support endpoint in the SoapUI tool.
1. One Way
2. Request and Response
3. Solicit response
4. Notification
The structure of a SOAP message
SOAP envelope
SOAP header
Header block
Header block
SOAP body
Body sutMtlement
Message Exchange Patterns (MEPs)
An overview of the most common Message Exchange Patterns (MEPs) applicable to the
Business Integration and SOA domains.
Overview
Message Exchange Patterns (MEPs) describe how systems may intercommunicate
using unanimously understood mechanisms. Unless otherwise specified, MEPs
describe logical patterns rather than strict physical ones:
Component Description
Coordinator Manages the transactional state (coordination context) and
enables Web services and clients to register as
participants.
Activation Enables the application to activate a transaction and create
Service a coordination context for an activity. Once created, the
coordination context is passed with the transaction flow.
Registration Enables an application to register as a participant.
Service
Application Supported coordination protocols, such as WS-
Protocol X, Y AtomicTransaction.
The following figure shows two instances of WebLogic Server interacting within the context of
a Web services atomic transaction. For simplicity, two WebLogic Web service applications are
shown.
For more information about JTA, see Programming JTA for Oracle
WebLogic Server.
The following describes a sample end-to-end Web services atomic
transaction interaction, illustrated in Figure 6-2: