xmlrpc 1.0.0 copy "xmlrpc: ^1.0.0" to clipboard
xmlrpc: ^1.0.0 copied to clipboard

outdated

Useful helper classes for the XML-RPC parsing.

XML-RPC library for Dart #

This library contains simple wrapper classes for responses and requests sent via XML-RPC protocol.

Use RpcRequest and RpcResponse classes for bidirectional conversions from/to XML.

For example a call to some external endpoint:

import 'package:http/http.dart' as http;
import 'package:xmlrpc/xmlrpc.dart';

var request = new RpcRequest();

request.method = 'echo';
request.addParam(true);
request.addParam('an argument');

http.post('http://example.com', body: request.toString())
        .then((httpResponse) {
            var response = new RpcResponse.fromText(httpResponse.body);

            print(response.isSuccess);
            print(response.length);
        });

As you see, these classes acts like a container for the parameters, so you can easily iterate over them and/or set the data using list-like access style using square brackets.

See the full API documentation here.

0
likes
0
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

Useful helper classes for the XML-RPC parsing.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

crypto, http, intl, xml

More

Packages that depend on xmlrpc