Giter VIP home page Giter VIP logo

dart-xmlrpc's People

Contributors

a14n avatar dependabot[bot] avatar timwhiting avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dart-xmlrpc's Issues

Order and Limit?

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

Authentication

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

odoo connection

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

Flutter: Response string encoding

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?

http.dart

Hello!
Where did you get http.dart file in your project?

Handshake error

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?

Any plans on creating a xmlrpc server?

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?

Migrate the library to null safe version of dart

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

How to create new codec for list of struct

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.

Invalid argument(s): No encoder to encode the value

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

Http cookie handling?

I do not see any possibility to handle http header cookie responses. Can this be a new feature?

Error occurred when running on web platform

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?

depends on meta ^1.1.8

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.