I surfed a lot about this issue, but unable to find the solution for this. Here the problem is, I want to connect to a wcf using Apache Cordova and Visual Studio. So if any one found a proper working solution please post the link
Asked
Active
Viewed 1,538 times
1 Answers
3
It seems you can do this in cordova wit JQuery. See Calling Cross Domain WCF service using Jquery/Javascript
For this the WCF-Services must have the Attribute
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
and the Service-Methods to get Data must decorated with
[WebGet(ResponseFormat = WebMessageFormat.Json)]
But first, I'm going to checkout the code provided in this SO Question and post the result here.
-
I think that links only shows how to connect to Auth0 using either Cordova or WCF; but it does not show how to connect a Cordova client to a WCF service. – Julien Lebot Jan 11 '16 at 15:47
-
@JulienLebot You are right, the link was missleading, got my first downvote. I deleted the link and provided a new one. I hope someone find out and post a more detailed answer, as I would do, if I get more Time for this toppic. – gReX Jan 11 '16 at 17:27
-
upvoted for fixed link. In the page linked you can find a blog post which links to this article on code project http://www.codeproject.com/Articles/132809/Calling-WCF-Services-using-jQuery quite old but should do. – Julien Lebot Jan 11 '16 at 23:57