Melissa cloud services support multiple protocols in order to provide our customers a wide range of technologies to fit into their current architecture. All the protocols allow you to send the same data, and they all return the same data.
HTTP headers need to match the protocols and formats being used. Usually this involves the values of “Content-Type” and “Accept”.
Example JSON Request Header:
"Content-Type": "application/json; charset=utf-8",
XML stands for EXtensible Markup Language. It is an older format than JSON, but still widely used. It was designed to be human-readable, though JSON is both easier to read and faster to use. XML stores information like so:
Our web services support XML for both requests and responses, and there are many simple ways to translate back and forth between XML and JSON. Please refer to the documentation of the service for information on the format and structure.
Our web services also support JSON for both requests and responses. Please refer to the documentation of the service for information on the format and structure.
JSONP stands for JSON with Padding.
JSONP in effect uses JSON objects, but with some additional "padding" that allows cross-domain requests, i.e. it allows requests and responses between domains with different top-level domains, such as a ".com" server talking to a ".net" server.
The URL after "src=" would return a regular JSON object, and the <script…</script> padding would allow it to be received and parsed by, say, server.example.NET.
REST architecture uses a URL and an HTTP call. This allows you to quickly build a call as a string and submit it with a simple program, or even manually with a browser. REST requests do not support batching, so they are better for real-time checks and testing. Most of our web services allow you to choose a response format from among the previously discussed options.
There are four parts to a REST request.
Example REST request:
Parameters & Values:
SOAP stands for Simple Object Access Protocol. It is Ideal for languages with development toolkits like Visual Studio .NET, which makes consuming and using the service very easy. The SOAP protocol can be used for both single record processing and batching.
Please consider using XML when using SOAP. Additionally, since it is an older and slower protocol, not all of our services support SOAP, so we recommend that you use REST, JSON, JSONP, or XML if possible.