Please enable JavaScript.
Coggle requires JavaScript to display documents.
W23 - SOA & Web Services [17/27 Code] (Web Service (uses SOAP (Simple…
W23 - SOA & Web Services [17/27 Code]
Service Oriented Architecture (SOA)
using SOA, application can
publish its function or message to rest of world
It can
expose functionality of its classes
via a
service
Web Service
S/w system designed to support
interoperable machine-to-machine
interaction over a network
It can be accessed accross
the Internet
using
standard Internet protocols
and uses
XML as its messaging format
uses SOAP (Simple Object Access Protocol)
SOAP is a format for sending and receiving messages and is
platform independent
. Based on XML.
SOAP
Building Blocks
<soap: Envelope xmlns:soap = dddvdss>
<soap:Header></soap:Header>
<soap:Body>
<soap:Fault>
</soap:Fault>
</soap:Body>
</soap: Envelope>
Envelope (root element
identifies XML as SOAP
message)
Optional Header (
app-specific info
about SOAP message)
Body (contains actual SOAP message. Either
request or response
message
Optional Fault (can appear only once. contains
error/status
info)
SOAP using WSDL
WSDL
an XML filw describing:
location
of web service
data types
that are used in it
methods, parameters and return values
that are available
STRUCTURE
<definitions>
<types></types>
<message></message>
<portType></portType>
<binding></binding>
</definitions>
RESTful Web Services
four HTTP verbs
are used to provide a basic set of
CRUD functionality
JSON
as the messaging format for exchanging data
HTTP Methods
GET
When page load, PHP checks if it has
data in the $_GET superglobal variable
and if not displays an
empty form
If data, process it on click of search
Data gets submitted
on the URL
POST
If data,
some processing is carried out
.
Data not shown in URL but rather in
body of the request