if you want to connect an Opa web client with a XML-RPC server. The right way to send a request is probably\[code\]xml request_body = @xml( <methodCall> <methodName>my_rpc_method</methodName> <params>some_rpc_params</params> </methodCall>)request = WebClient.Post.of_xml( {WebClient.Post.default_options with content: {some: request_body} })WebClient.Post.try_post_with_options_async( server_uri, request, callback)function callback(response) { ...}\[/code\]Now, what is the right way to parse the server response back into an Opa XML data structure? I have currently created my own XML parser for that, but this is certainly not the best practice.The API shows several XML parsing functions like:
- Xml_parser.try_parse
- XmlConvert.of_string
- Xmlns.try_parse (btw. what is the difference between the Xml and Xmlns data type in Opa?)
- ...