How to connect web services

2 posts, 0 answers
  1. Lạc Tiểu Bình
    Lạc Tiểu Bình avatar
    1 posts
    Member since:
    May 2015

    Posted 12 Apr Link to this post

    I'm building apps by the nativescript CLI, i use orient database, how to connect web servies ?
  2. Anton Dobrev
    Anton Dobrev avatar
    531 posts

    Posted 15 Apr Link to this post


    Thanks for posting to the Telerik Developer Forums.

    The common way in modern mobile apps is to connect to your database server via web services. For instance, using the correct OrientDB driver for your preferred server language (as shown here) you can create a set of web services and deploy them to a web server. Use these services to expose the required data from the database and secure the authentication from the mobile app.

    From NativeScript you can use the HTTP module to invoke an HTTP request to the server and fetch the required data from it. More on this module is available here.

    If you have further questions on using the NativeScript modules from the NativeScript CLI, you can also post to the GitHub project here.

    Anton Dobrev

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top