You can take a look at the sync framework samples here:
http://code.msdn.microsoft.com/sync
For Sql to SQl ce sync through WCF, there is sample called Database Sync: SQL Server and SQL Compact N-Tier with WCF. It's built on top of Sync v2.1. If you installed 4.0, just change all the sync related references to make it build.