Normally when you want to communicate with another computer from our computer we can use a computer network.
Web services are just like that.
We have a client who request a service x.
A server who has the service x implemented in its server.
We can request for the service x over internet.
According to Web Service Architecture Working Group (WSAWG) web service is defined technically as follows.
Typically we can just call a remote web service. We have to go through its API(Application Programming Interface) to access it.
(ex: If we build a mobile device and we want to get some data to our app from Facebook server we have to go through Facebook API first)
Web services are just like that.
We have a client who request a service x.
A server who has the service x implemented in its server.
We can request for the service x over internet.
Image obtained from : http://pdn.pelco.com/sites/default/files/original/4274web_service_diag.jpg |
According to Web Service Architecture Working Group (WSAWG) web service is defined technically as follows.
Web service has an interface described in a machine-processable format (specifically WSDL). Other systems interact with the Web service in a manner prescribed by its description using SOAP (Simple Object Access Protocol) messages, typically conveyed using HTTP with an XML serialization in conjunction with other Web-related standards.http://dev.w3.org/2002/ws/arch/wsa/wd-wsa-arch-review2.html#whatis
Typically we can just call a remote web service. We have to go through its API(Application Programming Interface) to access it.
(ex: If we build a mobile device and we want to get some data to our app from Facebook server we have to go through Facebook API first)
API components
- Request message format (can be SOAP, XML or JSON or any other format)
- Response message format (can be SOAP, XML or JSON or any other format)
- Service request syntax (call as a named method / Call as URIs and Parameters)
- Requested action (What is being requested from the server)
- Authentication ( Authenticity of the connection between client and server, login exchange or token exchange)
Machine- Machine communication mechanism (from history to now)
- Electroic Data Exchange (EDI , machine-machine communication method)
- Remote Procedure Calls (RPC)
- Microsodt RPC (based on RPC and COM - Common Object Model)
- Common Object Request Broker Architecture (CORBA)
- Java Remote Method Invocation (Java RMI)
- XML-RPC (XML based RPC)
- ATOM based WS (Atom is based on XML)
- RSS based WS (RSS is also based XML)
- Simple Object Access Protocol (SOAP. Also known as WS*-Web services everything. One of the popular one)
- JSON based WS
0 comments:
Post a Comment