views:

328

answers:

1

Does anyone have an example of how to use MS Sync framework with .NET webservices? I have SQL Server 2008, which is exposing data to BlackBerry devices through webservices using regular web methods. Can I use the Sync Framework to expose data through Web Services and to save it back to the database?

A: 

As far as I understand your question, you wish to syncronize two relational databases via a web service. The Sync Framework supports this scenario, as described in the documentation.

I wrote a couple of posts based on my own limited experience with this scenario:

Mark Seemann
No, a BlackBerry with Persistent Object storage is on on end and it communicates with a SQL Server 2008 DB through a webservice.
DanG
You can still use the Sync Framework even for non-relational data destinations, but not the ADO.NET Sync Services (they are different aspects of the same overall package). However, that is a lot more work. In any case you must be able to execute the Sync code on the device, so you must be able to run either .NET (CF) or COM code there.
Mark Seemann
I can't run any .NET code on a BlackBerry. Ideas?
DanG
If you can run COM code, you can use that instead. Otherwise, you can't use the Sync Framework, unless you can reverse the direction and make the device a server and the service the client. The sync framework doesn't push, it pulls, so you need a host for the pulling code.
Mark Seemann