Click here to Skip to main content
15,746,883 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
I have created a phonegap based android application, in which I have called WCF Services and its working, Now I want to move to Native,for which I am using android studio, Please help me how to call those services, or can I use the already created JS file of phonegap project?

What I have tried:

I just want to know how do I call WCF services on android over WIFI ?
Updated 9-Aug-17 2:15am

1 solution

As PhoneGap (or maybe Cordova) uses JavaScript, the question is how to call WCF services using JavaScript...
for that you can use JQuery's ajax method (of course you have to enable HTTP/S bindings on your WCF and better to use JSON format for return values)...
There is a nice sample of all this here: Calling WCF Services using jQuery[^]
Share this answer
Member 13233111 14-Aug-17 3:24am    
But How Do I implement it to call from android studio using JS?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900