Posts

Showing posts from 2009

SOAP vs REST in the service layer for mobile applications

With the surge in native mobile applications and the advent of players like Android, IPhone, Palm and other big players into this market, providing frameworks to develop applications native to the device, it is important for developers to understand performance implications for every operation that the application is going to perform. WHY THE PROMINENCE? The service layer has always been a most important factor for any enterprise as that is where they have put all their money in. During the last ten years, organizations have made significant investments in SOAP-based infrastructure such as Enterprise Service Buses (ESBs) and Business Process Management (BPM) software based on WS-BPEL. The SOAP binding will allow organizations to leverage those investments in building interoperable content repositories. Within the enterprise and in B2B scenarios, SOAP is still very attractive. This is not to say that REST is not enterprise ready. In fact, there are known successful RESTful imple

Consuming a JSON response in Android

Widely hailed as the successor to XML in the browser, JSON (JavaScript Object Notation) aspires to be nothing more than a simple and elegant data format for the exchange of information. JSON's basic types are: * Number (integer, real or floating point) * String (double-quoted Unicode with backslash escaping) * Boolean (true and false) * Array (an ordered sequence of values, comma-separated and enclosed in square brackets) * Object (collection of key: value pairs, comma-separated and enclosed in curly braces) * null This article gives an insight about how to use JSON as a data interchange format, provided with the URL of a Restful Service which returns a JSON response. Advantages of JSON * Simpler than XML because it is not a markup language and a natural representation of data * JSON is better data exchange format; XML is a better document exchange format * JSON is easier to read for machines with no/thin client-side library * JSON is a natural fit