Introduction to Web Services Technology
What is Web Services
Programming language and platform independent infrastructure for
loosely-coupled, App2App communication over the Internet(Globe).
or
A web service is a piece of business logic, located somewhere on the
Internet, that is accessible through standard-based Internet protocols
such as HTTP or SMTP.
or
Web services framework is an XML-based distributed
object/service/component system. Intended to support machine-to-machine
interactions over the network.
Characteristics of Web Services
A web service has special behavioral characteristics:
XML-based: As a data transport, XML eliminates any networking, operating system, or platform binding that a protocol has.
Loosely coupled: The web service interface can change over time without compromising the client's ability to interact with the service.
Adopting a loosely coupled architecture tends to make software systems
more manageable and allows simpler integration between different
systems.
Supports Remote Procedure Calls (RPCs): Web services allow clients to invoke procedures, functions and methods on remote objects using an XML-based protocol.
Remote procedures expose input and output parameters that a web service must support
Ability to be synchronous or asynchronous:
Synchronicity refers to the binding of the client to the execution of
the service. In synchronous invocations, the client blocks and waits for
the service to complete its operation before continuing.
Asynchronous operations allow a client to invoke a service and then
execute other functions. Asynchronous clients retrieve their result at a
later point in time, while synchronous clients receive their result
when the service has completed.
Asynchronous capability is a key factor in enabling loosely coupled systems.
Supports document exchange:
Web services support the transparent exchange of documents to facilitate business integration.
Why Web Service?
Interoperable - Connect across heterogeneous networks using ubiquitous web-based standards.
Economical - Recycle components, no installation and tight integration of software
Automatic - No human intervention required even for highly complex transactions.
Accessible - Legacy assets & internal apps are exposed and accessible on the web.
Available -Services on any device, anywhere, anytime.
Scalable -No limits on scope of applications and amount of heterogeneous applications.
There are two kind of approach generally used to implement a Web Services:
1. Code First Approach (Buttom-Up) :-
In the Code First Approach, development of the service is started from a
code. So the developer can write a service without knowing anything
about WSDL.
Code First approach is simple, less time consuming and easy to use for
people who are not familiar with Web Services standards because WSDL is
somewhat hard to understand and use for a beginner.
Code First is a good approach to convert a lagacy code into a Web
Services.
2. Contract First Approach (top-Down Approach) :-
In the Contract First Approach, development of the service is started
from a WSDL definition, which becomes a contract between the service
provider and the client.
Once WSDl is finalize between the business, the client side and server
work can start parallel on basis of finalized WSDL.
This approach is more complex compared to Code First Approach and also
it requires an in depth understanding of WEB Services. But it is the
more popular and recommended.
Thanks! Please provide your input if any!
Please tell one example of asynchronous webservice? how we can do?
ReplyDeleteGreat Article android based projects
DeleteJava Training in Chennai
Project Center in Chennai
Java Training in Chennai
projects for cse
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
Great article about intro of Web Services. At a glance, I got so much info about Web Service.
ReplyDeleteThanks for your clear-cut explanation.
Thanks Jetti for your kind words, refer the more on http://www.tutorialbyexample.com/
DeleteMust go on http://www.tutorialbyexample.com/search/label/Web%20Services all other examples.
ReplyDelete
ReplyDeleteThanks to admin for this Blog because I have read your whole site Content and shared to people your site is informative and people can take information from your site.
BT Mail Login
Hats off to your presence of mind..I really enjoyed reading your blog. I really appreciate your information which you shared with us.
ReplyDeleteBest CRM System
This is really awesome and full of knowledge. Skalable Technologies offers software with expertise in Microsoft and Oracle-NetSuite technologies.
ReplyDelete