This is a migrated thread and some comments may be shown as answers.

How to connect web services

1 Answer 53 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lạc Tiểu Bình
Top achievements
Rank 2
Lạc Tiểu Bình asked on 12 Apr 2016, 09:36 AM
I'm building apps by the nativescript CLI, i use orient database, how to connect web servies ?

1 Answer, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 15 Apr 2016, 10:50 AM
Hello,

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.

Regards,
Anton Dobrev
Telerik
 

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

 
Tags
General Discussion
Asked by
Lạc Tiểu Bình
Top achievements
Rank 2
Answers by
Anton Dobrev
Telerik team
Share this question
or