Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 29th, 2011, 02:11 AM
Authorized User
Join Date: Aug 2010
Posts: 16
Thanks: 10
Thanked 0 Times in 0 Posts
Default Cross Domain WCF Data Services & jQuery

Not sure if this is in the right spot.

I am currently in the process of trying to build a WCF data service to share data across the internet using jQuery. My motivation behind this is to enable an Android/iPhone app I have designed with Phonegap and HTML5 to be able to access data from a database on the internet using jQuery.

I own the Professional ASP.NET 4.0 Wrox book and have poured over the WCF chapter, however have been unsuccessful in being able to implement a cross domain jQuery call of my own despite trying every day for about two weeks now.

Researching the internet leads me to believe I need to use JSONP.

The closest I have been able to achieve is using the code project found at http://www.codeproject.com/KB/webser...JQueryWCF.aspx. Here I was able to publish the code onto server A and then use jQuery to call a method from server B, however since the class definitions was in a .dll file and not a .cs file I haven't been able to modify the data source.

The more I read about this technology the more I realise how deep it is. Can anybody suggest either a publication which addresses cross domain WCF or an article which explains it well enough? Have borrowed numerous WCF books but none of them have contained information about cross domain jQuery calls.

Not sure if this affects anything but I'm using VWDE 2010. I've also installed Visual C# Express when I started dealing with .dll files but don't know if I need it.

Last edited by R4VEN; November 29th, 2011 at 02:15 AM..

Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain Services & Application Services MrFixxiT BOOK: Professional ASP.NET Design Patterns 1 September 20th, 2011 09:17 AM
call WCF Service using JQuery but without using AJAX informit BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842 0 February 23rd, 2009 01:33 AM
Cross-domain synchronization NicoDeBruin General .NET 5 August 26th, 2007 02:34 PM
Cross Domain Cookies kokkee Javascript 1 May 21st, 2007 09:02 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.