How do I sync dynamically generated files from a WCF service to a device's storage?

Locked How do I sync dynamically generated files from a WCF service to a device's storage?

  • 11 ธันวาคม 2552 5: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 19 เมษายน 2554 22:48 Forum consolidation (From:SyncFx - Technical Discussion [ReadOnly])
    •  

ตอบทั้งหมด

  • 22 ธันวาคม 2552 6: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.