Difference between SOAP vs REST
Below table lists out the difference between SOAP and REST bases APIs
Sr No. | SOAP | REST |
---|---|---|
1 | SOAP stands for Simple Object Access Protocol. | REST stands for REpresentational State Transfer. |
2 | SOAP is a protocol. | REST is an architectural style. |
3 | SOAP uses services interfaces to expose the business logic. | REST uses URI to expose business logic. |
4 | Java specification for SOAP is JAX-WS. | Java specification for REST is JAX-RS. |
5 | SOAP requires more bandwidth and resource than REST. | REST requires less bandwidth and resource than SOAP. |
6 | SOAP defines its own security to secure the message | RESTful web services inherits security measures from the underlying transport layer. |
7 | SOAP allows XML data format for data exchange. | REST allows multiple data format such as Plain text, HTML, XML, JSON etc. |
8 | SOAP is less preferred than REST. | REST more preferred than SOAP. |
- Home
- Java
- Java Fundamentals
- What is Java
- History of Java
- Java Version History
- Local Environment Set-up
- First Java Program
- How to set ‘Path’ env variable
- JDK, JRE, and JVM
- Object Oriented Programming
- Java Data Types
- Classes in Java
- Objects in Java
- Interfaces in java
- Class attributes and methods
- Methods In Java
- Variables and Constants in Java
- Java packages and Imports
- Access Modifiers In Java
- Java Operators
- Constructors in Java
- Control Statements – If else
- Control Statements – Loops
- Arrays in Java
- Java Abstraction
- Inheritance and Polymorphism
- Java Exception Handling
- Strings in Java
- File IO
- Java Miscellaneous
- Design Patterns
- Java Fundamentals
- Collections
- Multithreading
- Java New Features
- Servlet
- JSP
- Spring
- Hibernate
- Architecture
- Hibernate Example
- First Hibernate Application (using xml configuration)
- First Hibernate Application (using annotations)
- JPA/HB – annotations
- Hibernate Identifiers
- Hibernate Generator Classes
- Save vs saveOrUpdate vs persist in Hibernate
- Inheritance Mapping in Hibernate
- Inheritance Mapping using annotations
- Hibernate Mapping
- Hibernate Query Language (HQL)
- HCQL Hibernate Criteria Query Language
- Hibernate Named Query
- Hibernate Caching
- Second Level Cache
- Spring Boot
- Spring Boot Basics
- Spring Boot Web
- Spring Boot Exception Handling
- Service discovery using Netflix Eureka
- Spring Boot with Swagger3
- Zuul Proxy Server + Routing
- Spring Boot Security
- Circuit Breaker using Spring Boot Hystrix
- Interservice Communication
- Spring Boot Hateoas Links Example
- Lombok api
- Spring Boot with Mongo DB
- Load Balancer in Springboot
- Spring Boot Testing
- Spring Web Flux
- Database
- Web Service
- HTML
- Blog & Programs
- Docker