Category Archives: Webservices

Java Webservices

How to write hello world Java Webservice client

Oracle Java
In java, you can write your java webservice client by different ways. If you have wsdl, and its accessible, you can generate java client code on terminal using wsimport tool. If you are interested in, how to generate java webservice source code using wsimport? you can visit our another post, i.e. How to generate Java Webservice artifact using wsimport (on linux terminal or window).
Continue reading How to write hello world Java Webservice client

JAX-WS: wsimport tool example with step by step

Oracle Java In JAX-WS you can generate the server side artifact and client side artifact of webservices using wsdl. It is your choice , how you start of developing webservice either Top-down ( contract-first ) or Bottom UP ( java code first). Which is better is better approach is completly depend on your preference and nature of services.
Continue reading JAX-WS: wsimport tool example with step by step

Difference between RPC Style and Document Style SOAP web Services in Java?

java-logo
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?

RESTful Web services Interview Questions and Answers

Java web service
Although there can be so many questions raised in the mind of interviewer, when specially web services requirement they have. I tried to add some of the most commonly interview questions which my friends and I encountered the interview. This section consist only RESTful web services interview and you can find another page of SOAP based web services Interview questions and answers.
Continue reading RESTful Web services Interview Questions and Answers