Question: what is difference between rest and soap web services in java?
Answer: SOAP is a standardized protocol that sends messages using other protocols such as HTTP and SMTP. ... It allows different messaging formats, such as HTML, JSON, XML, and plain text, while SOAP only allows XML. REST is also a more lightweight architecture, so RESTful web services have a better performance.