Blog Archives

01: 7 must know Java Web Services Interview Q&As

As an enterprise Java developer, you will be spending more time integrating systems via Java web services & messaging. Java Web Services interview questions are must know for the Java developers.

Q1. What are the different styles of Web Services used for application integration?

Read more ›

02: 6 Java RESTful Web services Interview Q&As

Q1. What is RESTful Web service, and why is it favored over SOAP Web service? A1. REST stands for REpresentational State Transfer (REST), which is a stateless software architecture that reads webpages containing XML, JSON, Plain text, etc. REST is a simpler alternative to Simple Object Access Protocol (SOAP) and...

03: JAX-RS how to create a RESTFul Web Service in Java?

Q. What are the high level steps in developing a RESTful web service in Java?
A. You can see the complete tutorial in the tutorials section. This post is to quickly explain the major steps at the job interview. Knowing all the basics is of no use if you can’t write a web service.

Read more ›

04: 5 JAXB interview Questions & Answers

JAXB interview Questions & Answers Links: 6 Java RESTful Web services Interview | 11 SOAP Web service interview | Java Web Services interview Questions & Answers Q1. What does JAXB stand for? What is an XML Binding? A1. … Read more ›...

05: REST Service URI conventions with Spring MVC

The high level pattern for the RESTful URI is http(s)://{version-no}/{domain}/{rest-reource-convetion} For example: http(s):// to list  … Read more ›...

06: RESTful Web services and HATEOAS Q&A

Q1. What is HATEOAS? How does it provide state transition, scalability, and loose coupling? A1. HATEOAS (Hypermedia as the Engine of Application State) is considered the final level of REST. This means that each link is presumed to implement the standard REST verbs of GET, … Read more ›...

07: HATEOAS RESTFul Service with Spring tutorial

Step 1: Create a Maven project structure Step 2: pom.xml to get right jars Note that “spring-hateoas” is included. The “com.fasterxml.jackson.datatype” is required for the JSON processing. Step 3: Hello class with “ … Read more ›...

08: REST constraints (i.e. design rules) interview Q&A

Q1. What are the 6 REST constraints? A1. REST constraints are design rules that are applied to establish the distinct characteristics of the REST architectural style. These constraints don’t dictate what kind of technology to use, and they only define how data is transferred between components and what benefits we...

09: 11 SOAP Web service interview Q&As

SOAP Web Services interview Questions & Answers Links: 6 Java RESTful Web services Interview | 5 JAXB interview Questions & Answers | Java Web Services interview Questions & Answers Q1. What are the different approaches to developing a SOAP based Web service? … Read more ›...

10: SOAP Web Service Styles Interview Q&A

Q1. What is the difference between the “RPC” and “Document” styles in SOAP? A1. There are two communication style models that are used to translate a WSDL binding to a SOAP message body. In RPC style, the body of the SOAP request body must contain both the 1) “operation name...

11: JAX-WS how to create a SOAP web service in Java?

Step 1:Create the Java Maven project:

Step 2: Need the libraries/frameworks

This example shows Apache CXF library as JAX-WS implementation with Spring and deployed to JBoss server 5.1.1.

Step 3: Web service interface with JAX-WS annotations

Folder: src/main/java

Step 4: Implementation of Web service interface

Step 5: Spring XML config as IoC.

Read more ›

800+ Java Q&As & tutorials