3

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

Madpop
  • 729
  • 4
  • 24
  • 61

1 Answers1

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.

Community
  • 1
  • 1
gReX
  • 1,060
  • 1
  • 20
  • 35
  • 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