I get syncserviceexception: Missing Operation at download change operation perform in iphone list sample

Unanswered I get syncserviceexception: Missing Operation at download change operation perform in iphone list sample

  • martes, 05 de junio de 2012 12:32
     
     

    iPhone list sample Code:

    // anc stores the userID which needs to be passed in the UploadChanges and DownloadChanges urls
    Anchor *anc = [Utils getAnchor:inContext];
            self.uploadURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@/DefaultScopeSyncService.svc/?syncScope=DefaultScope&operation=UploadChanges&userid=%@", self.baseURL, [anc valueForKey:@"userID"]]];
            self.downloadURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@/DefaultScopeSyncService.svc/?syncScope=DefaultScope&operation=DownloadChanges&userid=%@", self.baseURL, [anc valueForKey:@"userID"]]];

    //After login its reponse given Error

    response string: {"ErrorDescription":"Microsoft.Synchronization.Services.SyncServiceException\u000d\u000aMissing Operation\u000d\u000a   at Microsoft.Synchronization.Services.RequestParser.GetRequestCommandType() in D:\\Priyanka Rawat\\RND\\SyncFramework\\Microsoft Sync Framework Toolkit\\src\\SyncServiceLib\\RequestParser.cs:line 194\u000d\u000a   at Microsoft.Synchronization.Services.RequestParser.ParseIncomingRequest() in D:\\Priyanka Rawat\\RND\\SyncFramework\\Microsoft Sync Framework Toolkit\\src\\SyncServiceLib\\RequestParser.cs:line 75\u000d\u000a   at Microsoft.Synchronization.Services.SyncService`1.ProcessRequestForMessage(Stream messageBody) in D:\\Priyanka Rawat\\RND\\SyncFramework\\Microsoft Sync Framework Toolkit\\src\\SyncServiceLib\\SyncService.cs:line 145\u000d\u000a\u000d\u000a\u000d\u000a"}
    2012-06-05 17:01:55.063 iPhoneListSample[1959:fb03] Response  Str0--{"ErrorDescription":"Microsoft.Synchronization.Services.SyncServiceException\u000d\u000aMissing Operation\u000d\u000a   at Microsoft.Synchronization.Services.RequestParser.GetRequestCommandType() in D:\\Priyanka Rawat\\RND\\SyncFramework\\Microsoft Sync Framework Toolkit\\src\\SyncServiceLib\\RequestParser.cs:line 194\u000d\u000a   at Microsoft.Synchronization.Services.RequestParser.ParseIncomingRequest() in D:\\Priyanka Rawat\\RND\\SyncFramework\\Microsoft Sync Framework Toolkit\\src\\SyncServiceLib\\RequestParser.cs:line 75\u000d\u000a   at Microsoft.Synchronization.Services.SyncService`1.ProcessRequestForMessage(Stream messageBody) in D:\\Priyanka Rawat\\RND\\SyncFramework\\Microsoft Sync Framework Toolkit\\src\\SyncServiceLib\\SyncService.cs:line 145\u000d\u000a\u000d\u000a\u000d\u000a"}

Todas las respuestas

  • martes, 05 de junio de 2012 13:30
    Moderador
     
     

    have you tried replacing syncScope with SyncScopeName and operation with SyncOperation in the urls?

  • miércoles, 06 de junio de 2012 4:34
     
     

    Hi ,

       Thanks for your appreciate reply. As your reply i have changed the urls but still i have faced same error:

     self.uploadURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@/DefaultScopeSyncService.svc/?SyncScopeName=DefaultScope&SyncOperation=UploadChanges&userid=%@", self.baseURL, [anc valueForKey:@"userID"]]];
            self.downloadURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@/DefaultScopeSyncService.svc/?SyncScopeName=DefaultScope&SyncOperation=DownloadChanges&userid=%@", self.baseURL, [anc valueForKey:@"userID"]]];

    Thanks

  • miércoles, 06 de junio de 2012 5:54
    Moderador
     
     

    can you post what the final value is for your self.uploadUrl and self.downloadUrl?

  • miércoles, 06 de junio de 2012 7:20
     
     

    Hi,

    I have replaced syncScope with SyncScopeName and operation with SyncOperation in the urls after the final requested urls are :

    self.uploadUrl is : http://192.168.0.177/ListService/DefaultScopeSyncService.svc/?SyncScopeName=DefaultScope&SyncOperation=UploadChanges&userid=8049b18b-909a-499d-976d-11607a79c46e

    self.downloadUrl is : http://192.168.0.177/ListService/DefaultScopeSyncService.svc/?SyncScopeName=DefaultScope&SyncOperation=DownloadChanges&userid=8049b18b-909a-499d-976d-11607a79c46e

    Thanks

  • miércoles, 06 de junio de 2012 7:40
    Moderador
     
     

    i dont have an ios dev environment to test it, but can you quickly test using the ff url instead?

    self.uploadUrl is : http://192.168.0.177/ListService/DefaultScopeSyncService.svc/DefaultScope/UploadChanges?userid=8049b18b-909a-499d-976d-11607a79c46e

    the above is based on the documentation for using HTTP

    btw, do you have your serviceroot configured in the iphonelistsample-info.plist?

    i think that should be pointing to http://192.168.0.177/ListService

  • miércoles, 06 de junio de 2012 8:52
     
     

    Hi,

        Thanks your reply. I have changed upload url as your last reply but there are no solution for GET/POST Sync service request  through iPhone list sample.

    Error:

    {"ErrorDescription":"Microsoft.Synchronization.Services.SyncServiceException\u000d\u000aUnsupported HTTP method. Please use POST for UploadChanges request.\u000d\u000a   at Microsoft.Synchronization.Services.RequestParser.GetRequestCommandType() in D:\\Priyanka Rawat\\RND\\SyncFramework\\Microsoft Sync Framework Toolkit\\src\\SyncServiceLib\\RequestParser.cs:line 206\u000d\u000a   at Microsoft.Synchronization.Services.RequestParser.ParseIncomingRequest() in D:\\Priyanka Rawat\\RND\\SyncFramework\\Microsoft Sync Framework Toolkit\\src\\SyncServiceLib\\RequestParser.cs:line 75\u000d\u000a   at Microsoft.Synchronization.Services.SyncService`1.ProcessRequestForMessage(Stream messageBody) in D:\\Priyanka Rawat\\RND\\SyncFramework\\Microsoft Sync Framework Toolkit\\src\\SyncServiceLib\\SyncService.cs:line 145\u000d\u000a\u000d\u000a\u000d\u000a"}

    Thanks Dear !!!


  • miércoles, 06 de junio de 2012 10:50
    Moderador
     
     

    are you using the latest bits of the toolkit?

    it looks like your original settings are actually correct.

  • miércoles, 06 de junio de 2012 13:38
     
     
    We are using :Microsoft sync framework 4.0 October 2010 CTP and SDK 2.1 RTM
  • miércoles, 06 de junio de 2012 13:50
    Moderador
     
     
    that's an older version...grab the latest bits here: http://code.msdn.microsoft.com/silverlight/Sync-Framework-Toolkit-4dc10f0e
  • jueves, 07 de junio de 2012 13:26
     
     

    Hello sir,

    Now i have worked on HTML5Sample but....here me also face some issues relevant to sync operations............Please help me.

    // For download operation relevant issue

    [Sync Error]:Error occurs during sync. Please check logs below.
    [Download Change Response Error]: 0 Response:
    [Download Change Request]:http://192.168.0.177/ListService/DefaultScopeSyncService.svc/defaultscope/DownloadChanges?userid=8049b18b-909a-499d-976d-11607a79c46e
    {"d":{"__sync":{"moreChangesAvailable":false,"serverBlob":null},"results":[]}}
    [Login]:User Info
    {"name":"p","id":"8049b18b-909a-499d-976d-11607a79c46e"}
    [Login]:Login from local cache

    // For Upload operation relevant issue

    [Sync Error]:Error occurs during sync. Please check logs below.
    [Upload Change Response Error]: 0 Response:
    [Upload Change Request]:http://192.168.0.177/ListService/DefaultScopeSyncService.svc/defaultscope/UploadChanges?userid=8049b18b-909a-499d-976d-11607a79c46e
    {"d":{"__sync":{"moreChangesAvailable":false,"serverBlob":null},"results":[{"__metadata":{"type":"DefaultScope.List","tempId":"e1f65fee-dd44-0d84-7bcd-401298967fc9","isDirty":true},"ID":"e1f65fee-dd44-0d84-7bcd-401298967fc9","UserID":"8049b18b-909a-499d-976d-11607a79c46e","Name":"list111","Description":"list1 description","CreatedDate":"/Date(1339074731550)/"}]}}

    Thanks