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? and What are the differences between both approaches?… Read more ...

Tags:

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…

Read more ...
Tags: ,

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. JAXB means Java API for Xml Binding. XML binding maps an XML…

Read more ...
Tags:

05: REST Service URI conventions with Spring MVC

The high level pattern for the RESTful URI is http(s)://myserver.com:8080/app-name/{version-no}/{domain}/{rest-reource-convetion} For example: http(s)://myserver.com:8080/accounting-services/1.0/forecasting/accounts to list  all the accounts. This is a plural resource returning a collections of accounts. The URI contains nouns representing the resources in a hierarchical structure. For example, if you want a to get a particular transaction…

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, POST, PUT, and DELETE (or…

Read more ...
Tags:

07: HATEOAS RESTFul Service with Spring tutorial

Step 1: Create a Maven project structure

Step 2: pom.xml to get right jars

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…

Read more ...
Tags:

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? A1. There are 2 approaches. 1) The contract-first…

Read more ...
Tags: ,

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…

Read more ...


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.… Read more ...



500+ Java Interview FAQs

Java & Big Data Tutorials

Top