There are two types of web services:
SOAP web services:
SOAP stands for Simple Object Access Protocol. It is used to transfer the data. It is a XML-based messaging-layer protocol. SOAP can be used in combination with a variety of transport protocols like HTTP, SMTP, and JMS etc.
Note: SOAP is part of the set of standards specified by the W3C.
RESTful web services:
REST stands for REpresentational State Transfer. Unlike SOAP it is a web standards based architecture and not protocol. It uses HTTP protocol for data communication. REST provides the facility to represent a resource in various formats like text, JSON and XML.
Note: JSON is the most popular format.
- Interview questions on web services.
- What is interoperability in web services?
- Explain web service protocol stack layers
- Explain web service architecture with diagram
- What is UDDI?
- What tools are used to test web services?
- What are different types of web services?
- What are the elements of soap message?
- What is wsdl in web services?
- What is difference between top down and bottom up approach in soap web services?
- Explain contract first approach in web service
- Explain contract last approach in web service
- What is a resource in restful web services?
- What are the http methods used in restful web services?
- What are different ways to test web services?
- Can we maintain user session in web services?
- How to choose between soap and rest web services?
- Explain annotations used in jax-ws api
- How to get wsdl file of a soap web service?
- What is JAX-RS API?
- Explain some implementations of jax-rs api
- What are the annotations used in JAX-RS API?