Components of a Web Service

Components of a Web Service

While building a Web Service (WS), you will design a¬†Consumer Class and an Implementation Class. An Implementation Class contains code/methods that are to be shared with different Consumers. Easiest way to go about the design would be a create an Interface for the Implementation Class and any Consumer would consume the Implementation Class through the Interface i.e. they will call the implementation through the interface, they get to know the contract, and the methods of the implementation through the interface. An Interface is a standard way in which you can share any contract like this with a Consumer. When you … Read More

Introduction to Web Services

new-life

There are two types of Web Services: 1. SOAP Web Services 2. RESTful Web Services SOAP Web Services is the older of the two. Both of them are in use and both are equally popular. In Java there are two different specifications for Web Services: 1. For SOAP Web Services the specification is called JAX-WS 2. For REST Web Services the specification is called JAX-RS A Web Service is a service that is made available over the web i.e. a service that is available over the network and that is accessible over the network. The difference between a website and … Read More