Initially Java is called as OAK, in the 1995 it is renamed as Java, as part of Java some modules are there like Core Java is utilized to develop stand alone applications and it will be in the form of two tier architecture. Advanced Java is utilized to develop the web applications by using Servlets, JSP and it will be in the form of three tier architecture.
The Java enterprise edition is utilized to develop distributed applications and it will be in the form of the entire architecture. As part of Java JME (Java mobile edition) is utilized to develop mobile applications.
Java Web Services
Description
Java web services gives ideas and cases of two primary java web administrations programming interface: JAX-WS and JAX-RS. The java web benefit application can be gotten to by other programming dialects, for example, .Net and PHP.
Java web service application perform correspondence through WSDL. There are two approaches to compose java web service application code SOAP and RESTful. The following are the two java web services API.
JAX-WS(SOAP)
JAX-RS
JAX-WS(SOAP)
The SOAP is a XML-based protocol to get an access for web services and it was the recommendation given by W3C to give the communication for an applications, the advantage of SOAP is that it’s a platform and language independent and one more advantage is interacting with an applications which were developed in other language coding. SOAP uses WSDL. The following is an image which describes the communication.
SOAP was completely shaped for an interaction via internet and SOAP will extend the HTTP for the processing of XML messaging and SOAP has the ability to allow the applications of client to get connect to remote services.
JAX-RS
RESTful Web Services are REST design based web administrations. In REST Architecture everything is an asset. RESTful web services are lexceedingly adaptable, ight weight, viable and are normally used to make APIs.
REST is web models based engineering and uses HTTP Protocol for information correspondence. It rotates around asset where each segment is an asset and an asset is gotten to by a typical interface utilizing HTTP standard strategies. REST was initially presented by Roy Fielding in 2000.
REST is a compositional style which depends on web-benchmarks and the HTTP convention. REST was initially depicted by Roy Fielding in 2000. In a REST based design everything is an asset. An asset is gotten to by means of a typical interface in light of the HTTP standard techniques. In a REST based engineering you ordinarily have a REST server which gives access to the assets and a REST customer which gets to and changes the REST assets.
Summary
Key Points
The Jersey, RESTEasy are the primary implementation of the JAX-RS API.