Skip to content

Latest commit

Β 

History

History
47 lines (38 loc) Β· 1.24 KB

File metadata and controls

47 lines (38 loc) Β· 1.24 KB

πŸ” XML-RPC Client-Server Example with SSL

πŸ“ Overview

This project demonstrates a simple XML-RPC client-server architecture in Python, secured with SSL. The server exposes remote procedures, and the client communicates with the server to invoke these procedures.

πŸ“ Project Structure

  • server.py: XML-RPC server implementation with SSL.
  • client.py: XML-RPC client implementation.
  • utils.py: Utility functions used by server and client.
  • requirements.txt: Python dependencies.
  • server.crt, server.key: SSL certificate and key for secure communication.
  • logs/: Directory for server and client logs.
  • tests/: Contains test cases.

πŸ“¦ Requirements

  • Python 3.8+
  • Packages listed in requirements.txt

βš™οΈ Setup

  1. Install dependencies:
    pip install -r requirements.txt

πŸ–₯️ Running the Server

Start the XML-RPC server:

python server.py both

The server will start and listen for incoming XML-RPC requests over SSL.

πŸ’» Running the Client

In a separate terminal, run:

python client.py add 2 2

The client will connect to the server and perform remote procedure calls.

πŸ§ͺ Testing

Run the test suite using pytest:

pytest tests/

πŸ“„ License

MIT License