×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Question No Sync element sent from client when doing Slow-Sync

    Hi,

    I am trying to Synchronize a Nokia E71 and Nokia N82 with my sync server but fail. I does however work with a Nokia N73. The problem seems to be that the N71 and the N82 don't send the 'Sync' element when they are supposed to. I expect the 'Sync' element in msg #3 (from the client). Is the server sending the wrong replies here or what? Thanks in advance to any help. Here follows the message sequence:

    Msg #1 client -> server:
    HTML Code:
    <SyncML xmlns="SYNCML:SYNCML1.2">
        <SyncHdr>
            <VerDTD>1.2</VerDTD>
            <VerProto>SyncML/1.2</VerProto>
            <SessionID>2</SessionID>
            <MsgID>1</MsgID>
            <Target>
                <LocURI>https://syncme.lorenc.se:443</LocURI>
            </Target>
            <Source>
                <LocURI>IMEI:xxx</LocURI>
            </Source>
            <Cred>
                <Meta>
                    <Type xmlns="syncml:metinf">syncml:auth-basic</Type>
                </Meta>
                <Data>xxx</Data>
            </Cred>
            <Meta>
                <MaxMsgSize xmlns="syncml:metinf">65535</MaxMsgSize>
            </Meta>
        </SyncHdr>
        <SyncBody>
            <Alert>
                <CmdID>1</CmdID>
                <Data>201</Data>
                <Item>
                    <Target>
                        <LocURI>./Calendar</LocURI>
                    </Target>
                    <Source>
                        <LocURI>./C:Calendar</LocURI>
                    </Source>
                    <Meta>
                        <Anchor xmlns="syncml:metinf">
                            <Last/>
                            <Next>20100328T220810Z</Next>
                        </Anchor>
                    </Meta>
                </Item>
            </Alert>
            <Put>
                <CmdID>2</CmdID>
                <Meta>
                    <Type xmlns="syncml:metinf">application/vnd.syncml-devinf+xml</Type>
                </Meta>
                <Item>
                    <Source>
                        <LocURI>./devinf12</LocURI>
                    </Source>
                    <Data> ... </Data>
                </Item>
            </Put>
            <Get>
                <CmdID>3</CmdID>
                <Meta>
                    <Type xmlns="syncml:metinf">application/vnd.syncml-devinf+xml</Type>
                </Meta>
                <Item>
                    <Target>
                        <LocURI>./devinf12</LocURI>
                    </Target>
                </Item>
            </Get>
            <Final/>
        </SyncBody>
    </SyncML>
    Msg #2 server -> client:
    HTML Code:
    <SyncML xmlns="SYNCML:SYNCML1.2">
        <SyncHdr>
            <VerDTD>1.2</VerDTD>
            <VerProto>SyncML/1.2</VerProto>
            <SessionID>2</SessionID>
            <MsgID>1</MsgID>
            <Target>
                <LocURI>IMEI:xxx</LocURI>
            </Target>
            <Source>
                <LocURI>https://syncme.lorenc.se:443</LocURI>
            </Source>
            <Meta>
                <MaxMsgSize xmlns="syncml:metinf">1000000</MaxMsgSize>
            </Meta>
        </SyncHdr>
        <SyncBody>
            <Status>
                <CmdID>1</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>0</CmdRef>
                <Cmd>SyncHdr</Cmd>
                <TargetRef>https://syncme.lorenc.se:443</TargetRef>
                <SourceRef>IMEI:xxx</SourceRef>
                <Data>212</Data>
            </Status>
            <Status>
                <CmdID>2</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>1</CmdRef>
                <Cmd>Alert</Cmd>
                <TargetRef>./Calendar</TargetRef>
                <SourceRef>./C:Calendar</SourceRef>
                <Item>
                    <Data>
                        <Anchor xmlns="syncml:metinf">
                            <Next>20100328T220810Z</Next>
                        </Anchor>
                    </Data>
                </Item>
                <Data>200</Data>
            </Status>
            <Alert>
                <CmdID>3</CmdID>
                <Data>201</Data>
                <Item>
                    <Target>
                        <LocURI>./C:Calendar</LocURI>
                    </Target>
                    <Source>
                        <LocURI>./Calendar</LocURI>
                    </Source>
                    <Meta>
                        <Anchor xmlns="syncml:metinf">
                            <Last>00000000T000000Z</Last>
                            <Next>20100328T221008Z</Next>
                        </Anchor>
                    </Meta>
                </Item>
            </Alert>
            <Status>
                <CmdID>4</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>2</CmdRef>
                <Cmd>Put</Cmd>
                <Data>200</Data>
            </Status>
            <Results>
                <CmdID>5</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>3</CmdRef>
                <Meta>
                    <Type xmlns="syncml:metinf">application/vnd.syncml-devinf+xml</Type>
                </Meta>
                <Item>
                    <Source>
                        <LocURI>./devinf12</LocURI>
                    </Source>
                    <Data>...</Data>
                </Item>
            </Results>
            <Final/>
        </SyncBody>
    </SyncML>
    Msg #3 client -> server:
    HTML Code:
    <SyncML xmlns="SYNCML:SYNCML1.2">
        <SyncHdr>
            <VerDTD>1.2</VerDTD>
            <VerProto>SyncML/1.2</VerProto>
            <SessionID>2</SessionID>
            <MsgID>2</MsgID>
            <Target>
                <LocURI>https://syncme.lorenc.se:443</LocURI>
            </Target>
            <Source>
                <LocURI>IMEI:xxx</LocURI>
            </Source>
            <Meta>
                <MaxMsgSize xmlns="syncml:metinf">65535</MaxMsgSize>
            </Meta>
        </SyncHdr>
        <SyncBody>
            <Status>
                <CmdID>1</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>0</CmdRef>
                <Cmd>SyncHdr</Cmd>
                <TargetRef>IMEI:xxx</TargetRef>
                <SourceRef>https://syncme.lorenc.se:443</SourceRef>
                <Data>200</Data>
            </Status>
            <Status>
                <CmdID>2</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>3</CmdRef>
                <Cmd>Alert</Cmd>
                <TargetRef>./C:Calendar</TargetRef>
                <SourceRef>./Calendar</SourceRef>
                <Data>200</Data>
                <Item>
                    <Data>
                        <Anchor xmlns="syncml:metinf">
                            <Next>20100328T221008Z</Next>
                        </Anchor>
                    </Data>
                </Item>
            </Status>
            <Status>
                <CmdID>3</CmdID>
                <MsgRef>1</MsgRef>
                <CmdRef>5</CmdRef>
                <Cmd>Results</Cmd>
                <Data>200</Data>
            </Status>
            <Final/>
        </SyncBody>
    </SyncML>
    Msg #4 server -> client:
    HTML Code:
    <SyncML xmlns="SYNCML:SYNCML1.2">
        <SyncHdr>
            <VerDTD>1.2</VerDTD>
            <VerProto>SyncML/1.2</VerProto>
            <SessionID>2</SessionID>
            <MsgID>2</MsgID>
            <Target>
                <LocURI>IMEI:xxx</LocURI>
            </Target>
            <Source>
                <LocURI>https://syncme.lorenc.se:443</LocURI>
            </Source>
            <Meta>
                <MaxMsgSize xmlns="syncml:metinf">1000000</MaxMsgSize>
            </Meta>
        </SyncHdr>
        <SyncBody>
            <Status>
                <CmdID>1</CmdID>
                <MsgRef>2</MsgRef>
                <CmdRef>0</CmdRef>
                <Cmd>SyncHdr</Cmd>
                <TargetRef>https://syncme.lorenc.se:443</TargetRef>
                <SourceRef>IMEI:xxx</SourceRef>
                <Data>200</Data>
            </Status>
            <Final/>
        </SyncBody>
    </SyncML>
    Last edited by froil; 2010-03-29 at 10:54.

  2. #2
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Question Re: No Sync element sent from client when doing Slow-Sync

    After searching through some other threads I have come up with a theory of my own. Could the problem be that the server responds with one of the status messages placed after the Alert command? If this is the answer to the mystery, then I find it odd that this is accepted by a N73 model but not by the E71 and N82 models...

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Thumbs down Re: No Sync element sent from client when doing Slow-Sync

    Quote Originally Posted by froil View Post
    After searching through some other threads I have come up with a theory of my own. Could the problem be that the server responds with one of the status messages placed after the Alert command? If this is the answer to the mystery, then I find it odd that this is accepted by a N73 model but not by the E71 and N82 models...
    Nope, that wasn't it. I finally had a Nokia N63 test it out and it behaved just like the others; no Sync element was ever sent. I'm out of ideas, is there really none who has an idea of what the server might be doing wrong?

    I would appreciate any response!

  4. #4
    Registered User
    Join Date
    Apr 2010
    Posts
    3

    Re: No Sync element sent from client when doing Slow-Sync

    Did you ever resolve this issue? I am experiencing the same problem with an E71. There is no Sync element where expected. Would love to hear your resolution if so.

  5. #5
    Registered User
    Join Date
    Mar 2010
    Posts
    4

    Re: No Sync element sent from client when doing Slow-Sync

    I did a lot of small changes in my attempt to fix this:
    - deactivated the "string table" feature when converting my response to wbxml
    - made sure all status messages came first in in my replies
    ...


    I'm not 100% sure that these where the ones that fixed the issue but you should at least try them. Get back to me if did not help, maby I can help you search for the error...

  6. #6
    Registered User
    Join Date
    Apr 2010
    Posts
    3

    Re: No Sync element sent from client when doing Slow-Sync

    I have high hopes for re-ordering the status messages to always appear first. The implementation I'm dealing with does not currently do that, and haphazardly orders things.

    Thanks for the tip.

  7. #7
    Registered User
    Join Date
    Apr 2010
    Posts
    3

    Re: No Sync element sent from client when doing Slow-Sync

    Indeed, once I reordered the elements to have all the status elements at the beginning of the response, it started working.

    Thank you for your assistance.

Similar Threads

  1. Bluetooth client problem on games!
    By wmchan78 in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2006-03-22, 06:15
  2. Ethernet and the Sync client in the Series 60 Emulator
    By fcastanar in forum OMA DM/DS/CP
    Replies: 6
    Last Post: 2004-10-29, 12:07
  3. Sync client for series 60 sdk 2.0
    By nitin_123 in forum Symbian
    Replies: 0
    Last Post: 2004-09-14, 07:25
  4. Sync phone through Citrix client
    By psa_nokia in forum General Development Questions
    Replies: 0
    Last Post: 2003-06-04, 23:04
  5. Sync Client version
    By gbrennan in forum OMA DM/DS/CP
    Replies: 1
    Last Post: 2002-09-03, 07:44

Posting Permissions

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