client_c library

A client library for XML-RPC protocol that also support XML-RPC Extension Types.

You can make method calls with:

import 'package:xml_rpc/client_c.dart' as xml_rpc;
main() async {
  final url = Uri.parse('...');
  try {
    final result = await xml_rpc.call(url, 'examples.getStateName', [41]);
    print(result);
  } catch (error) {
    print(error);
  }
}

Classes

Base64Value
A container for a base64 encoded value.
Codec<T>
Fault
An object corresponding to a <fault> in the response.
SimpleCodec<T>

Properties

arrayCodec → _ArrayCodec
final
base64Codec SimpleCodec<Base64Value>
final
boolCodec SimpleCodec<bool>
final
dateTimeCodec SimpleCodec<DateTime>
final
doubleCodec SimpleCodec<double>
final
faultCodec → _FaultCodec
final
intCodec → _IntCodec
final
standardCodecs List<Codec>
final
stringCodec → _StringCodec
final
structCodec → _StructCodec
final

Functions

call(Uri url, String methodName, List params, {Map<String, String>? headers, Encoding encoding = utf8, HttpPost? httpPost}) Future

Typedefs

HttpPost = Future<Response> Function(Uri url, {Object? body, Encoding? encoding, Map<String, String>? headers})
The function to make http post.
XmlCodecDecodeSignature = Object? Function(XmlNode?)
XmlCodecEncodeSignature = XmlNode Function(Object?)