I want to know the difference, advantages and disadvantages of these two web services. Imagine I want to send a big image file:
a) a RPC based webservice via JAX-WS using SOAP
b) a REST based webservice using HTTP
I want to know the difference, advantages and disadvantages of these two web services. Imagine I want to send a big image file:
a) a RPC based webservice via JAX-WS using SOAP
b) a REST based webservice using HTTP
SOAP has a mechanism called Message Transmission Optimization Mechanism (MTOM) that is used specifically for sending large binary data (e.g. images).
REST uses HTTP directly, which means that anything done with SOAP (and MTOM) can be done using REST. Look at this answer: Is it possible to use MTOM in reponse of CXF RESTful Web Service