Web service is a way of communication that allows interoperability between different applications on different platforms, for example, a java based application on Windows can communicate with a .Net based one on Linux. The communication can be done through a set of XML or JSON messages over HTTP protocol. Web services are characterized by their gre...

Read More

We saw What are Web Services in our previous post, Big web services is one of the web services type which can be developed using JAX-WS implementation of Java EE 6. It uses XML messages that follow the Simple Object Access Protocol (SOAP) standard, an XML language defining a message architecture and message formats. Such systems often contain a mac...

Read More

REST stands for REpresentational State Transfer, which was first introduced by Roy Fielding in his thesis "Architectural Styles and the Design of Network-based Software Architectures" in 2000.  In Java EE 6, JAX-RS provides the functionality for RESTful web services. REST is well suited for basic, ad hoc integration scenarios, often better integrat...

Read More

Web Services Description Language (WSDL) is a format for describing a Web Services interface. It is an XML file that describes the technical details of how to implement a web service, more specifically the URI, port, method names, arguments and data types. Since WSDL is XML, it is both human-readable and machine-consumable, which aids in the abilit...

Read More

Below are few differences between REST and SOAP webservices which can help you to decide which one to use in your application: REST SOAP It supports different formats like text, JSON and XML. It only supports XML. It works only over HTTP(S) on a transport layer. It can be used different protocols on a transport layer. It works with resources, each ...

Read More

In Java EE 6, JAX-RS provides some annotations to aid in mapping a resource class as a web resource. Let us see some of the annotations: @Path specifies the relative path for a resource class or method. @GET, @PUT, @POST, @DELETE and @HEAD specify the HTTP request type of a resource. @Produces specifies the response Internet media types (used for c...

Read More

Restlet is a comprehensive yet lightweight RESTful web API framework for Java that lets you embrace the architecture style of the Web (REST) and benefit from its simplicity and scalability. By using this innovative framework, you can start blending your web services, web sites and web clients into uniform web applications! Restlet has a light core ...

Read More

Contrary to the Servlet API, the Restlet API gives you extensive control on the URI mapping and on the virtual hosts configuration. It includes a powerful Directory class to server static files in a way similar to Apache Web Server. Let us see some of the more complete list of features: Static file serving similar to Apache HTTP Server, with metada...

Read More

The @Path annotation identifies the URI path template to which the resource responds, and this annotation is specified at the class level of a resource. The @Path annotation's value is a partial URI path template relative to the base URI of the server on which the resource is deployed, the context root of the WAR, and the URL pattern to which the s...

Read More

The @GET annotation is a request method designator and corresponds to the similarly named HTTP method. The Java method annotated with this request method designator will process HTTP GET requests. The behavior of a resource is determined by the HTTP method to which the resource is responding. Now let us see this with an example: @Path("/library")...

Read More

The @POST annotation is a request method designator and corresponds to the similarly named HTTP method. The Java method annotated with this request method designator will process HTTP POST requests. The behavior of a resource is determined by the HTTP method to which the resource is responding. Now let us see this with an example: @Path("/library...

Read More

Traditional Middleware Web Services  Tightly coupled connections to the application and it can break if you make   any modification to your application.  Tightly coupled applications are hard to maintain and less reusable.  Web Services support loosely coupled connections.  The interface of the Web service provides a layer of abstraction between  t...

Read More

SOAP stands for Simple Object Access Protocol. It is an XML based lightweight protocol, which allows software components and application components to communicate, mostly using HTTP (can use SMTP etc). SOAP sits on top of the HTTP protocol. SOAP is nothing but XML message based document with pre-defined format. SOAP is designed to communicate via t...

Read More

XML provides the way to structure data and XML provides the foundation on which Web services are built. SOAP stands for Simple Object Access Protocol. It is an XML based lightweight protocol, which allows software components and application components to communicate, mostly using HTTP (can use SMTP etc). SOAP sits on top of the HTTP protocol. SOAP ...

Read More

Dropwizard is an open source framework developed by yammer for developing high-performance and ops-friendly RESTful web services. This guide will give a quick overview on how to create simple RESTful APIs using dropwizard and how to leverage powerful features the framework offers. We are going to create a demo application that will return a JSON ob...

Read More

FOLLOW US ON LinkedIn



Explore Tutu'rself