Answered by:
How to sync with (Web) WCF Service Application?

Question
-
What I am doing is similar to the Walk through sample "Creating N-Tier Data Application" (http://msdn.microsoft.com/en-us/library/bb384570.aspx) and "Adding a Local Database Cache to an N-Tier Application" (http://msdn.microsoft.com/en-us/library/bb882690.aspx). Following is a brief of the walk through: A windows Form application get data from DataService ( a WCF service library) and all the Data sync part are all in the DataService.
The trouble I have is that my server database is behind the firewall and I have to get the data via the web server. So I decided to create a "Web" WCF service application (instead of WCF library). It worked great WITHOUT Local data cache. When I tried to add the Local Database cache," the "Configure Data Sync" dialog asks:
1. Server Connection: I do have one my dev machine. But it will not been seen in production environment. Is it used to create Local database and modify the schema of the server database only or will it be used when sync data in production?
2. Server project location: My website (host WCF service application) is in the solution but is not showing as a project.
It looks to me (I am new in WCF) that the approach in the work through will NOT work for me. I can write code sync the data via the web WFC service. But is there better option?
Thanks in advance,
John- Moved by Max Wang_1983 Friday, April 22, 2011 6:37 PM forum consolidation (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
Friday, July 4, 2008 6:23 AM
Answers
-
Here is the sample how to do with peer to peer fashion.
http://forums.microsoft.com/sync/ShowPost.aspx?PostID=3588696&SiteID=75
Friday, August 8, 2008 6:45 PM -
there is a smaple code posted here http://blogs.msdn.com/sync/archive/2008/07/14/using-wcf-for-communcation-in-a-mobile-sync-application.aspx
thanks
Yunwen
Friday, August 8, 2008 8:08 PMModerator
All replies
-
Yeah, I too would desparately love to see a working example of Sync working with a REMOTE WCF webservice. All the current examples assume im in the same building and the server is connected on my LAN. The 80's called and want their network model back.
Can anyone show a SIMPLE sync example using a REMOTE WCF service to read AND write data (sync)? How can I avoid using the WCF library - and just create a simple WCF service?
I'm stil scratching my head as to why the "SaaS" and "SOA" and "Data in a Cloud" models weren't the first network models the sync group was targeting. What's the use of synch'ing on a LAN??
Any links, samples, videos would be very appreciated.
Thursday, August 7, 2008 5:48 PM -
Here is the sample how to do with peer to peer fashion.
http://forums.microsoft.com/sync/ShowPost.aspx?PostID=3588696&SiteID=75
Friday, August 8, 2008 6:45 PM -
there is a smaple code posted here http://blogs.msdn.com/sync/archive/2008/07/14/using-wcf-for-communcation-in-a-mobile-sync-application.aspx
thanks
Yunwen
Friday, August 8, 2008 8:08 PMModerator