Swift XML-RPC client based on URLSession.dataTask.
Uses XMLRPCCoder. Counterpart to XMLRPCServer.
Add this project on your Package.swift
import PackageDescription
let package = Package(
dependencies: [
.Package(
url: "https://github.com/ilg/XMLRPCClient.git",
branch: "main"
)
]
)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))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.