a14n / dart-xmlrpc Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
Hello, I am using this package to interact with an OpenERP server version 6, and I am able to, for example, search all the ids from all the contacts in res.partner. But I cannot manage to find the correct syntax to specify either 'order' or 'limit'.
This is how I am currently running the calls:
xml_rpc.call(Constants.urlObject, 'execute', [
Constants.db,
getStoredUserId,
getStoredPassword,
'res.partner',
'search',
[
['contacto', '=', true]
]
])
I have tried doing this, but it didn't work:
xml_rpc.call(Constants.urlObject, 'execute', [
Constants.db,
getStoredUserId,
getStoredPassword,
'res.partner',
'search',
[
['contacto', '=', true],
['limit', 1]
]
])
Any help would be greatly appreciated.
Thanks
Martín
Hello, I am trying to use this package to authenticate with an OpenERP 6 server, but I can't figure out the way to do it.
Can you provide any documentation or examples about how to authenticate with this package (if possible) ?
Thanks
Hi, I'm trying to connect a Flutter app to odoo API and I can't seem to be able to make a call to a database I'm trying to use this code,
final test = xml_rpc
.call(
url,
'execute_kw',
[
db,
uid,
pass,
'res_partner',
'search',
[
[
['is_company', '=', true]
]
],
],
encodeCodecs: codecs,
decodeCodecs: codecs)
.then((result) => print(result))
.catchError((error) => print(error));
but I get the No encoder to encode the value I'll leave a link to the odoo documentation for reference.
https://www.odoo.com/documentation/15.0/developer/misc/api/odoo.html
Hello,
I'm having trouble getting correctly encoded response strings.
Tried both Flutter for Web and for macOS.
I'm on Flutter 1.21.0-1.0.pre • channel dev.
final url2 = 'https://app.vocabilis.com/test/public_call/xmlrpc';
final result = await xml_rpc.call(url2, 'foo', ['мир']);
print(result);
The result I'm getting is "ми� baz".
The correct result should be "мир baz".
What am I missing?
Hello!
Where did you get http.dart file in your project?
Hello,
When making a xml_rpc call on Android I got:
I/flutter (14243): HandshakeException: Handshake error in client (OS Error:
I/flutter (14243): CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:354))
I added Android Internet permission https://flutter.dev/docs/development/data-and-backend/networking#android but without luck.
It seems this is a common issue, a way to resolve this is:
HttpClient client = new HttpClient();
client.badCertificateCallback = ((X509Certificate cert, String host, int port) => true);
Is there a way to give this client to xml_rpc plugin?
I'm interested in xmlrpc server api. This library looks very good, and I've verified that it works for me, but it's missing the server implementation. Is that something you have planned or would accept a pull request for?
Hi.
How to set request timeout? retry logic? ability to cancel request?
Hello.
The library 'package:xml_rpc/client.dart' is legacy, and should not be imported into a null safe library.
Try migrating the imported library.
Is it expected that the library will migrate to a null safe version of Dart?
Regards
I have problem to create list of struct , can you tell how to create a new codec for that , i have already read the documentation but, i still have no idea about it.
Hello,
Thank you for this library. I'm trying to connect to Odoo's API https://www.odoo.com/documentation/10.0/api_integration.html.
I was able to get the version, but when giving credentials access I get this issue from the plugin: flutter: Invalid argument(s): No encoder to encode the value
.
import 'package:flutter/material.dart';
import 'package:xml_rpc/client.dart' as xml_rpc;
import 'package:xml_rpc/client.dart';
void main() {
const url = 'https://my-url.com';
xml_rpc
.call(url + '/xmlrpc/2/common', 'version', [])
.then((result) => {
print(result),
xml_rpc
.call(url, 'authenticate', ['db-odoo', 'firstname.name', 'my-pwd', {}], encodeCodecs:standardCodecs, decodeCodecs: standardCodecs)
.then((result) => print(result))
.catchError((error) => print(error))
})
.catchError((error) => print(error));
runApp(MyApp());
}
At first I didn't provide encodeCodecs
and decodeCodecs
, but adding them give me same error.
Do I've to create an encoder? If so, could you give me some clues?
Thanks
I do not see any possibility to handle http header cookie responses. Can this be a new feature?
Hello, I found that when I run tests on the Windows platform, the output data is correct. However, when I run the same code on the web platform, the data that is originally an integer is output as a double, which causes mapping errors with the server. Is there any way to solve this issue?
Because every version of flutter_test from sdk depends on meta 1.1.6 and xml_rpc >=0.2.3 depends on meta ^1.1.8, flutter_test from sdk is incompatible with xml_rpc >=0.2.3.
please any help , i can use now 0.2.2 version only
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.