How do I sync dynamically generated files from a WCF service to a device's storage?
-
24/ذو الحجة/1430 05:30 صHi,
I'm quite new to Sync Framework, but I have quite a challenging task at hand...
I need to find a way to sync XML files (that are generated dynamically by a service) to a remote Windows Mobile device over a 3G connection. The files should then be saved on the remote device.
I understand that I should use a FileSyncProvider as the destination provider on the client side (ie. the mobile device), but I have NO idea how to implement a custom provider that will enable me to send files from the server as a remote provider. I am also very unsure of how to change the transport layer for the remote provider to use a web service/WCF instead of communicating locally.
Could someone point me in the right direction? Is Sync Framework the right tool for doing this?
Kind Regards,
Johann de Swardt
- تم النقل بواسطة Max Wang_Chinasoft 15/جمادى الأولى/1432 10:48 م Forum consolidation (From:SyncFx - Technical Discussion [ReadOnly])
جميع الردود
-
05/محرم/1431 06:23 صالمشرف
There is a code sample here that can help you:
http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=sync&ReleaseId=3592
The Sync Framework will help you with the synchronization aspects - you will have to write the provider, which means you will have to take care of the transport and the WCF stuff. Once you go through the Sync Framework documentation and samples, you will have a better idea of the things the Sync Framework will help you with.- تم الاقتراح كإجابة بواسطة Adrian Mustea - MSFTMicrosoft Employee 12/محرم/1431 07:12 م
- تم وضع علامة كإجابة بواسطة Sid Singh [MSFT]Microsoft Employee, Moderator 18/محرم/1431 10:58 م