Web Services Flashcards
What is a Web Service?
Web Services work on client-server model where client applications can access web services over the network. Web services provide endpoint URLs and expose methods that can be accessed over network through client programs written in java, shell script or any other different technologies.
Web services are stateless and doesn’t maintain user session like web applications.
What is SOA?
SOA is an architecture for building applications using reusable, interoperable services which have well defined business functionalities and can be orchestrated to achieve a specific functionality by utilizing them together.
What are Service Oriented Architecture?
Black boxes that are loosely coupled, and interdependent, does not rely on each other. Many small black boxes that are connected to each other
Difference between SOAP and Rest
SOAP Messaging: XML Transport: HTTP SMTD BEEP Service Discovery: UDDI EBXML Service Description: WEDL SEI (SERVICE ENDPOINT INTERFACE)
REST Messaging: XML JSON HTML Transport: HTTP HTTPS Service Discovery: EUREKA Service Description: WADL
Approaches to development of the enterprise Web Services
Contract-First vs. Contract-Last
What is Contract First?
Contract-first is where you create the WSDL first, and then you can create the implementation from this, and since the WSDL is your contract, this would be contract-first.
What is Contract Last?
Contract-last is where the WSDL is created from the source code, or implementation, so it will most likely be generated by a tool rather than created by the developer.
What is SOA?
SOA is an architecture for building business applications using loosely coupled services which act like black boxes and can be orchestrated to achieve a specific functionality by linking them together.
In SOA do we need to build systems from scratch?
No. If you need to integrate or make an existing system as a business service, you just need to create loosely coupled wrappers which will expose the systems functionality in a generic fashion.
What is SOAP?
SOAP (Simple Object Access Protocol) is a messaging protocol that allows programs that run on disparate operating systems (such as Windows and Linux) to communicate using Hypertext Transfer Protocol (HTTP) and its Extensible Markup Language (XML).
SOAP at one time stood for Simple Object Access Protocol. Starting with SOAP Version 1.2, the letters in the acronym have no particular meaning.
What does SOAP do?
SOAP specifies exactly how to encode an HTTP header and an XML file so that a program in one computer can call a program in another computer and pass along information. SOAP also specifies how the called program can return a response. Despite its frequent pairing with HTTP, SOAP supports other transport protocols as well.
SOAP enables applications to call functions from other applications, running on any hardware platform, regardless of different operating systems or programming languages.
How does SOAP send message over the internet?
Using the SOAP envelope
What is in the SOAP envelope?
The SOAP envelope contains two parts:
An optional header providing information on authentication, encoding of data, or how a recipient of a SOAP message should process the message.
The body that contains the message. These messages can be defined using the WSDL specification.
What does a WSDL document do?
A WSDL document describes a web service
What does a WSDL binding do?
A WSDL binding describes how the service is bound to a messaging protocol, particularly the SOAP messaging protocol.