Skip to content

Repository files navigation

XMLRPCClient

Build & Test Swift Version License codebeat-badge

Swift XML-RPC client based on URLSession.dataTask.

Uses XMLRPCCoder. Counterpart to XMLRPCServer.

Installation

Add this project on your Package.swift

import PackageDescription

let package = Package(
    dependencies: [
        .Package(
            url: "https://github.com/ilg/XMLRPCClient.git", 
            branch: "main"
        )
    ]
)

Usage example

The simplest (at the call site) way to use XMLRPCClient is to invoke the XML-RPC methods as if they were methods on the ServerProxy instance.

import XMLRPCClient

let client = ServerProxy(session: .shared, url: URL(string: "http://example.com/RPC")!)

let sum: Int32 = try await client.add(Int32(3), Int32(5))

Development setup

Open Package.swift, which should open the whole package in Xcode. Tests can be run in Xcode.

Alternately, swift test to run the tests at the command line.

Use bin/format to auto-format all the Swift code.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages