xmlrpcc-d 0.2.1
XML RPC client library for D Programming Language
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
XML-RPC client for D Programming Language
Based on Pavel Kirienko library.
Basic usage
import xmlrpcc.client;
auto client = new Client("http://phpxmlrpcc.sourceforge.net/server.php");
double resp1 = client.call!("examples.addtwodouble", double)(534.78, 168.36);
assert(approxEqual(resp1, 703.14));
string resp2 = client.call!("examples.stringecho", string)("Hello Galaxy!");
assert(resp2 == "Hello Galaxy!");
real resp2_1 = client.call!("examples.stringecho", real)("123.456"); // IMPLICIT CONVERSION
assert(approxEqual(resp2_1, 123.456));
int[string] resp3 = client.call!("validator1.countTheEntities", int[string])("A < C ' > 45\" 12 &");
assert(1 == resp3["ctQuotes"]);
assert(1 == resp3["ctLeftAngleBrackets"]);
assert(1 == resp3["ctRightAngleBrackets"]);
assert(1 == resp3["ctAmpersands"]);
assert(1 == resp3["ctApostrophes"]);
int[string][] arrayOfStructs = [["moe" : 1, "larry" : 2, "curly" : 3], ["moe" : -98, "larry" : 23, "curly" : -6]];
int resp4 = client.call!("validator1.arrayOfStructsTest", int)(arrayOfStructs);
assert(resp4 == -3);
Test
Unit test uses Online demo server.
$ dub test
Compiling
You can use dub:
$ dub build
Or (on linux) makefile:
$ make release
Requirements
- Registered by o3o
- 0.2.1 released 8 years ago
- o3o/xmlrpcc-d
- github.com/o3o/xmlrpcc-d
- Boost
- Copyright © 2016, Orfeo Da Viá
- Authors:
- Dependencies:
- none
- Versions:
-
0.2.1 2016-Apr-13 0.2.0 2016-Apr-11 0.1.1 2016-Apr-08 ~master 2017-Feb-23 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
163 downloads total
-
- Score:
- 1.1
- Short URL:
- xmlrpcc-d.dub.pm