Home > REST Service vs. Non-REST Service Contracts > REST Service Contracts vs. Non-REST Service Contracts

REST Service Contracts vs. Non-REST Service Contracts

For those of you interested in better understanding how the interaction between a service consumer and a REST service differs from that of a non-REST service, this section provides a step-by-step comparison.

A common form of a non-REST service contract is a Web service based on the use of WSDL and SOAP. In this case, the service contract is comprised of a custom definition containing a set of embedded, custom service capabilities. A Web service contract is usually specific to one Web service.

In both of the upcoming examples, the logic is based on the following steps for printing the mailing label of a customer invoice:

  1. An invoice is requested and retrieved from the Invoice service.
  2. The associated customer record is requested and retrieved from the Customer service.
  3. The address of the customer is sent to a print queue in order to produce a mailing label.