I tried to cover SOAP based web service interview questions and answer.
Continue reading SOAP Based Web Services Interview Questions and Answers
In Java web services specially JAX-WS standard, RPC and Document are two different approach of creating JAX-WS style of web service. RPC is older one and Document is newer one. RPC style generate WSDL document based on the method name and it’s parameters. No type definitions are present in WSDL document.
Document style contains type and can be validated against predefined schema. Let’s look at these with a simple program. Below is a simple test program where I am using Endpoint to publish my simple SOAP web service.
Continue reading Difference between RPC Style and Document Style SOAP web Services in Java?
This is one of the mostly asked interview question in the java web services. Initially asked to check, whether he/she is aware about the terminologies or not later deep dive the topic.
Continue reading Differences between SOAP and REST Web services
Although, I do not prefer to use cookie but still it’s handy to use in JAX-RS services. Whether you are prefering or not is not the important, if it required to to solve our contextual problem it should be used. The @CookieParam annotation allows you to inject cookies sent by a client request into your JAX-RS resource methods.
Continue reading JAX-RS : Get Cookie value using @CookieParam in Jersey
In JAX-RS, binding of Header variable in the controller/service method is very easy by using
Continue reading JAX-RS : Binding of Request header using @HeaderParam in Jersey
In JAX-RS, binding of path variable in the controller/service method is very easy by using
Continue reading JAX-RS: How to Get Values from @PathParam in Jersey
In JAX-RS, mapping of formParam in the controller/service method is very easy by using
Continue reading JAX-RS : Binding of Html Form Fields Using @FormParam annotation in Jersey
In JAX-RS, mapping of URL or handler URL is very easy by using
@Path annotation, and it can be used on either class level mapping or method level mapping or on both level mapping. If you map on both on class and method , class level value comes first and method level value comes later in the URL and combination of URL must be unique through out the application. If your mapping would not be unique it throws exception while start up of application.
Continue reading JAX-RS : Mapping of URL Using @Path Annotation in Jersey
In JAX-RS, getting values from queryString in jersey is very easy and it’s can be multiple way. I’m trying to demonstrate with different approach.
@QueryParam annotation is used to bind the queryString parameter in Jersery and it’s very handy.
Continue reading JAX-RS : How to Get Values from @QueryParam in Jersey
Writing of restful web services is very easy by using Spring application framework. I’m going to demonstrate example in Spring using Maven as build tool and Tomcat 7 as web server.
Continue reading Spring Restful Webservice example with Maven and Tomcat