×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    18

    Nokia 9500 -> Replace -> Status 500

    Hi. Now I'm having a new kind of a problem. Phone doesn't like my Replace commands at all, and responds to them with Status code 500.

    Here's what I send:

    Code:
    <Sync>
    <CmdID>2</CmdID>
    <Target>
    <LocURI>./C\System\Data\Calendar</LocURI>
    </Target>
    <Source>
    <LocURI>./Calendar</LocURI>
    </Source>
    <Replace>
    <CmdID>3</CmdID>
    <Meta>
    <Type xmlns="syncml:metinf">text/calendar</Type>
    </Meta>
    <Item>
    <Source>
    <LocURI>6454</LocURI>
    </Source>
    <Target>
    <LocURI>0</LocURI>
    </Target>
    <Data>BEGIN:VCALENDAR
    VERSION:1.0
    BEGIN:VEVENT
    UID:4
    SUMMARY:Testing
    DTSTART:20060909T213000Z
    DTEND:20060910T010000Z
    X-EPOCAGENDAENTRYTYPE:APPOINTMENT
    CLASS:PUBLIC
    LOCATION:Home
    DCREATED:20060301T000000Z
    LAST-MODIFIED:20060302T050800Z
    PRIORITY:0
    STATUS:NEEDS ACTION
    END:VEVENT
    END:VCALENDAR
    </Data>
    </Item>
    </Replace>
    <NumberOfChanges>1</NumberOfChanges>
    </Sync>
    Whole message is sent as wbxml and calendar-data has cr\lf line-endings..

    and this is what I get back:

    Code:
    <Status>
    <CmdID>2</CmdID>
    <MsgRef>2</MsgRef>
    <CmdRef>3</CmdRef>
    <Cmd>Sync</Cmd>
    <Data>500</Data>
    </Status>
    <Status>
    <CmdID>3</CmdID>
    <MsgRef>2</MsgRef>
    <CmdRef>4</CmdRef>
    <Cmd>Replace</Cmd>
    <Data>500</Data>
    </Status>
    Could anyone point me to right direction?

    -Cursed

  2. #2
    Registered User
    Join Date
    Jul 2006
    Posts
    18

    Re: Nokia 9500 -> Replace -> Status 500

    Ok. Now I can successfully Add calendar items, but Replacing doesn't work. What should I send as a Item/Target/LocURI when adding items with Replace. 9500 returns 404 when I send 0 or "./0" or something like that and 412 when omitting Item/Target/LocURI.

    -Cursed

  3. #3
    Registered User
    Join Date
    Nov 2004
    Location
    Los Angeles, CA, USA
    Posts
    12

    Re: Nokia 9500 -> Replace -> Status 500

    First a minor comment about your response message - according to the dtd the NumberofChanges element must appear before any command and in your case it appears at the end.

    I wasn't sure about comment about "adding items with Replace". Why do you want to add entries using the Replace command. As a server, you must know when an entry has been added or not so you can make the appropriate call either using Add or Replace. The spec allows the clients not to implement the Add command and always use Replace for both adds and replace operations, but for the server I don't see any reason why you want to add an item using the Replace command.

    If you're just trying to update an existing entry that was already synced, then you should already have the client's local id and you should pass that in the Item/Target/LocURI. If the entry being replaced was added from the client, then the client id was given during the Add operation from the client, and if the entry was initially added from the server, then the Map response to the initial Add command returned the client's local id value.

    Henry

  4. #4
    Registered User
    Join Date
    Jul 2006
    Posts
    18

    Re: Nokia 9500 -> Replace -> Status 500

    Jep, I've got the thing working now. (Excluding that Replace acts like Add-thing).

    -Cursed

Similar Threads

  1. Suggestions to improve the Nokia 9500 Communicator
    By creacom000 in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2005-07-21, 10:37
  2. Why does Nokia not help 9500 users?!
    By creacom000 in forum Symbian
    Replies: 0
    Last Post: 2005-07-11, 01:39
  3. Nokia Mobile VPN Client
    By marcyl in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2003-12-01, 14:47

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×