Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/helje5/swiftxmlrpc
An XML-RPC protocol implementation for Swift
https://github.com/helje5/swiftxmlrpc
swift xmlrpc xmlrpc-api
Last synced: 2 months ago
JSON representation
An XML-RPC protocol implementation for Swift
- Host: GitHub
- URL: https://github.com/helje5/swiftxmlrpc
- Owner: helje5
- License: gpl-3.0
- Created: 2020-12-28T20:22:11.000Z (about 4 years ago)
- Default Branch: develop
- Last Pushed: 2024-05-22T10:24:50.000Z (8 months ago)
- Last Synced: 2024-10-11T12:25:43.337Z (3 months ago)
- Topics: swift, xmlrpc, xmlrpc-api
- Language: Swift
- Homepage:
- Size: 75.2 KB
- Stars: 12
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Swift XML-RPC
XML-RPC protocol support for Swift.
An XML-RPC parser and a simple XML-RPC client object based upon `URLSession`
(if available).Performing a simple call:
```swift
#!/usr/bin/swift sh
import XmlRpc // helje5/SwiftXmlRpclet client = XmlRpc.createClient("https://www.xmlrpc.com/RPC2")
let methods = try client.system.listMethods()
```The package also contains a small XML-RPC commandline client.
It can be invoked like that:
```bash
swift run xmlrpc_call "http://yourserver/RPC2" system.listMethods
```Learn more about XML-RPC in Swift in our blog article:
[Writing an Swift XML-RPC Server](https://www.alwaysrightinstitute.com/macro-xmlrpc/).Note: Being so old many XML-RPC services still in use are
using the ISO Latin 1 charset, which is why the client
defaults to that.
When interfacing with a newer service, the encoding parameter
in createClient may have to be used to configure it for UTF-8.### Links
- [Writing an Swift XML-RPC Server](https://www.alwaysrightinstitute.com/macro-xmlrpc/)
- [XML-RPC](http://xmlrpc.com).com
- [Spec](http://xmlrpc.com/spec.md)
- [Original Site](http://1998.xmlrpc.com)
- [XML-RPC Introspection](http://xmlrpc-c.sourceforge.net/introspection.html)
- [NGXmlRpc](http://svn.opengroupware.org/SOPE/trunk/sope-appserver/NGXmlRpc/)
- [xmlrpc_call](http://svn.opengroupware.org/SOPE/trunk/xmlrpc_call/)### Who
**Swift XML-RPC** is brought to you by
[Helge HeΓ](https://github.com/helje5/) / [ZeeZide](https://zeezide.de).
We like feedback, GitHub stars, cool contract work,
presumably any form of praise you can think of.**Want to support my work**?
Buy an [app](https://zeezide.de/en/products/products.html):
[Code for SQLite3](https://apps.apple.com/us/app/code-for-sqlite3/id1638111010/),
[Past for iChat](https://apps.apple.com/us/app/past-for-ichat/id1554897185),
[SVG Shaper](https://apps.apple.com/us/app/svg-shaper-for-swiftui/id1566140414),
[HMScriptEditor](https://apps.apple.com/us/app/hmscripteditor/id1483239744).
You don't have to use it! π