Describe the characteristics of JSON web services: JSON web services are web services that uses the JSON encoding format instead of, for instance, XML. Such web services can be JAX-WS web services or REST web services.
REST web services typically allow for the resource representation to be in a format selected by the client at the time of the request. Possible formats include XML, JSON etc.
Some characteristics of web services (REST and JAX-WS) that use JSON are:
Depending on the circumstances, this might be an asset or a risk.
Minimizes the size of the data.
JSON is not as verbose as XML while retaining some of the flexibility and extensibility.
JSON web services cannot use the web security mechanisms that requires SOAP header blocks.
SOAP Web Services vs JSON Web Services JSON web services are more appropriate when:
Serializing simpler data structures, as opposed to documents like web pages etc.
In the latter case XML or some other format may be more appropriate.
Clients are AJAX clients.
Bandwidth usage needs to be minimized.
Validation of the format and contents of the data is not required.
SOAP web services are more appropriate when:
The format, and to some extent the contents, of the data sent to and received from the web service needs to be validated.
XML schema enables this.
Better tooling is required.
Reuse of existing data structure definitions is desired.
Web service security involving encryption of part(s) of messages, handling different parts of a messages in different ways, end-to-end security and not only transport layer encryption.