Systems Integration

Protocols

Prof. Dr. Christian Drumm

24.11.2026

Overview

Protocols

Standardized rules for communication between systems

  • Protocols define the rules for how data is exchanged between systems
  • They ensure that communication is standardized and reliable
  • Each protocol has its own strengths, historical context, and use cases
  • This lecture covers:
    • the historical background — RPC/CORBA and SOAP
    • REST and OData in detail

Learning Objectives

After this lecture, you should be able to:

  • Outline the historical evolution of integration protocols
  • Explain the key principles of REST
  • Interact with RESTful APIs using GET, POST, PUT, and DELETE
  • Explain the shortcomings of REST and how they are addressed in OData
  • Query data with OData query options such as $filter, $orderby, $top, and $expand

Historical Background

From RPC to OData

A brief history of integration protocols

Protocol Year Key idea
RPC 1980s execute procedures on remote systems
CORBA 1991 language-independent distributed objects (OMG)
SOAP 1998 standardized XML web services (W3C)
REST 2000 architectural style based on the web and HTTP
OData 2007 REST plus standardized querying and metadata

Early Approaches — RPC

Remote Procedure Call (1980s)

  • Executes procedures (functions) on remote systems
  • In languages like C and Java, remote calls look like local calls
    • parameters are passed and return values received as usual
  • Java RMI (Remote Method Invocation) is a popular implementation
  • Limitations:
    • tightly coupled to specific implementations
    • difficult to scale in highly distributed systems

Early Approaches — CORBA

Common Object Request Broker Architecture (1991)

  • Developed by the Object Management Group (OMG) for distributed computing
  • Enables communication between systems written in different languages
  • Common interface defined via an IDL (Interface Definition Language)
  • Location transparency: clients invoke methods on remote objects as if local
  • Supports multiple transport protocols; strong focus on interoperability

Both RPC and CORBA are powerful but complex to implement and maintain in large-scale, heterogeneous environments.

SOAP — 1998

Simple Object Access Protocol

  • Standardized, platform-independent protocol for web services
    • developed by Microsoft, later standardized by the W3C
  • Messages are structured using XML
  • Transport-independent: works over HTTP, SMTP, …
  • WSDL (Web Services Description Language) describes operations and message formats — a contract-driven approach
  • Built-in support for security, reliability, and transactionality

SOAP is robust for enterprise applications but heavy and complex to use.

REST — 2000

Representational State Transfer

  • Introduced by Roy Fielding in his PhD thesis1
  • Leverages the core principles of the World Wide Web and HTTP
  • Data is viewed as resources, each identified by a URI
  • Resources are manipulated with standard HTTP methods: GET, POST, PUT, DELETE
  • Stateless communication: each request is self-contained
  • Lightweight formats such as JSON → simple, flexible, scalable

REST’s simplicity made it the dominant approach for modern web APIs.

OData — 2007

Open Data Protocol

  • Developed by Microsoft to extend the principles of REST
  • Uniform method to query, manipulate, and expose data over HTTP
  • Adds advanced query features: $filter, $orderby, and $expand
  • Exposes metadata that describes the structure of the data
  • Popular in enterprise applications such as Microsoft Dynamics and SAP

SOAP vs. REST vs. OData

Formal protocol, architectural style, and data protocol

Aspect SOAP REST OData
Type formal protocol architectural style protocol on top of REST
Message format XML JSON, XML, … JSON over HTTP
Contract WSDL documentation (e.g. OpenAPI) $metadata document
Querying operation-based custom query parameters standardized ($filter, …)
Strengths security, reliability, transactions simplicity, scalability rich querying, metadata
Typical use finance, healthcare, government modern web APIs enterprise data, BI

OData extends REST wherever data-centric applications need more than basic CRUD.

REST

REST — Introduction

An architectural style, not a protocol

  • REST defines a set of constraints for designing distributed systems
  • Introduced in Roy Fielding’s PhD dissertation (2000)1
  • Goal: apply the principles of the World Wide Web to systems that are scalable, maintainable, and flexible
  • Today, REST is the foundation for the vast majority of modern web APIs

REST is an architectural style, not a protocol specification

REST — Key Principles (1/2)

Foundations of RESTful services

  1. Client–server architecture
    • separation of concerns
    • both can evolve independently
  2. Statelessness
    • each request contains all information needed to process it
    • the server stores no client context between requests
  3. Cacheability
    • responses declare whether they are cacheable
    • clients and intermediaries can reuse responses, improving performance
  4. Uniform Interface (cf. next slide)
  5. Layered system
    • intermediaries (proxies, load balancers) between client and server
    • improve performance, security, and scalability transparently

REST — Key Principles (2/2)

The uniform interface

  1. Resource-based
    • everything is a resource identified by a URI
    • a document, an image, a user, a product, …
    • manipulated using standard HTTP methods
  2. Representation
    • clients interact with resources via their representation
    • formats such as JSON, XML, or HTML
    • selected via content negotiation (e.g. the Accept header)
  3. HATEOAS — Hypermedia as the Engine of Application State
    • responses contain hyperlinks to related resources and actions
    • clients navigate the API by following links — services are self-descriptive

RESTful API — Example

A product catalog service

  • GET /products — retrieve a list of products
  • GET /products/1 — retrieve the product with ID 1
  • POST /products — create a new product
    • product details are sent in the request body
  • PUT /products/1 — update the product with ID 1
    • updated data is sent in the request body
  • DELETE /products/1 — delete the product with ID 1

RESTful API — Request and Response

Retrieving one product

Request

GET /products/1 HTTP/1.1
Host: api.example.com
Accept: application/json

Response

HTTP/1.1 200 OK
Content-Type: application/json

{
  "id": 1,
  "name": "Mountain Bike",
  "price": 1200,
  "category": "Sports"
}

The Accept header requests a JSON representation of the resource.

REST — Exercise

Step 1: Interacting with RESTful APIs

  • Use Postman, httpie, or a web browser
  • Work with the public JSONPlaceholder API to perform the following operations:
    1. GET — retrieve all posts, then a specific post (/posts/1)
    2. POST — create a new post; verify with GET
    3. PUT — update an existing post; verify with GET
    4. DELETE — delete a post; confirm with a 404 Not Found

Step 2: Explore popular REST APIs like the GitHub REST API or the OpenWeatherMap API

REST — Key Takeaways

  • REST is an architectural style built on the principles of the web
  • Key constraints: client–server, statelessness, cacheability, uniform interface, layered system
  • Resources are identified by URIs and manipulated with HTTP methods
  • Clients receive representations (JSON, XML, …) via content negotiation
  • HATEOAS makes services self-descriptive through hyperlinks
  • REST’s simplicity and scalability made it the standard for modern web APIs

OData

OData — Shortcomings of REST (1/2)

Querying and metadata

  1. Limited querying capabilities
    • REST has no built-in way to filter, sort, or paginate
    • custom parameters (?filter=...) lead to inconsistent APIs
    • OData’s solution: a standardized query language — $filter, $orderby, $top, $skip, $expand
  2. No standard metadata exposure
    • clients must rely on external documentation
    • limits dynamic discovery of endpoints and structures
    • OData’s solution: a machine-readable $metadata document describing entity types, relationships, and data types

OData — Shortcomings of REST (2/2)

Relationships, pagination, and batching

  1. Relationships between resources
    • no standard way to retrieve related entities in one request
    • leads to over-fetching or under-fetching
    • OData’s solution: $expand retrieves related data in a single call
  2. Inconsistent pagination and sorting
    • no uniform convention across REST APIs
    • OData’s solution: standardized $top, $skip, and $orderby
  3. Batching multiple requests
    • REST handles one request at a time — many round-trips
    • OData’s solution: $batch groups operations into one HTTP call

OData — Query Options

Standardized URI conventions

Option Purpose Example
$filter filter results $filter=price gt 100
$orderby sort results $orderby=name desc
$top limit the result size $top=10
$skip skip results (pagination) $skip=20
$expand include related entities $expand=category
$metadata describe the data model GET /odata/v1/$metadata
$batch group multiple operations POST /odata/v1/$batch

Standardized options eliminate custom query logic and make data services consistent.

OData — Key Problems Solved

  • Standardized query language
    • filter, sort, and paginate consistently across APIs
  • Metadata exposure
    • $metadata lets clients understand the data model dynamically
  • Complex relationships
    • $expand fetches related entities in a single request
  • Consistent pagination and sorting
    • $top, $skip, and $orderby behave uniformly across services
  • Batching
    • $batch reduces network overhead for multiple operations

OData — Exercise

Working with OData services

  1. OData basics
  2. Accessing ERP data using OData
    • Query the mini-ERP system from the lab using Postman or httpie
    • Ideas for queries:
      • all orders
      • all orders by a certain customer
      • details of one order including items and product details
      • all orders in a certain status, ordered by order value

Combine query options such as $filter, $orderby, and $expand in your requests.

Summary

Summary

  • Protocols define standardized, reliable communication between systems
  • Evolution: RPC/CORBA → SOAP → REST → OData
    • SOAP: formal, XML-based, contract-driven (WSDL); strong on security and transactions
  • REST — an architectural style based on web principles
    • constraints: client–server, statelessness, cacheability, uniform interface, layered system
    • resources are addressed by URIs and manipulated with GET, POST, PUT, DELETE
  • OData extends REST for enterprise data access
    • query options, $metadata, $expand, and $batch solve REST’s shortcomings

Why are protocols important for systems integration?

When would you use SOAP, REST, or OData?

References