[sync] Synchronisation with an HP iPAQ h4100
Daniel Vandal
dvandal at infoteck.qc.ca
Thu Aug 19 11:56:05 PDT 2004
Hi Karsten,
As you asked, thereis a debug of a request from a SyncML client to an Horde
server (with the CVS
version of the framework and horde)
The Sync4j SyncML client put a debug file containing everything sent and
got, there is the log output :
(All the password and login are removed)
INFO - Preparing sync...
DEBUG - 2
DEBUG - [login]:[password]
DEBUG - Initialization message:
DEBUG - <SyncML>
<SyncHdr>
<VerDTD>1.1</VerDTD>
<VerProto>SyncML/1.1</VerProto>
<SessionID>1</SessionID>
<MsgID>1</MsgID>
<Target><LocURI>http://beta.courriels.com</LocURI></Target>
<Source><LocURI>B600E0D03041977E0</LocURI></Source>
<Cred>
<Meta><Format xmlns='syncml:metinf'>b64</Format><Type
xmlns='syncml:metinf'>syncml:auth-basic</Type></Meta>
<Data>[encrypted data]</Data>
</Cred>
</SyncHdr>
<SyncBody>
<Alert>
<CmdID>1</CmdID>
<Data>201</Data>
<Item>
<Target><LocURI>./calendar</LocURI></Target>
<Source><LocURI>./calendar</LocURI></Source>
<Meta><Anchor xmlns="syncml:metinf">
<Last>0</Last>
<Next>29656604</Next>
</Anchor></Meta>
</Item>
</Alert>
<Final/>
</SyncBody>
</SyncML>
DEBUG - Connecting to beta.courriels.com:80
DEBUG - Requesting resource /rpc.php
DEBUG - Content-length: 1136
DEBUG - size: 1137, read: 1136
DEBUG - Response:
DEBUG - <SyncML xmlns=""><SyncHdr
xmlns="syncml:syncml1.1"><VerDTD>1.1</VerDTD><VerProto>SyncML/1.1</VerProto>
<SessionID>1</SessionID><MsgID>1</MsgID><Target><LocURI>B600E0D03041977E0</L
ocURI></Target><Source><LocURI>http://beta.courriels.com</LocURI></Source><R
espURI>http://beta.courriels.com</RespURI></SyncHdr><SyncBody
xmlns=""><Status
xmlns="syncml:syncml1.1"><CmdID>1</CmdID><MsgRef>1</MsgRef><CmdRef>0</CmdRef
><Cmd>SyncHdr</Cmd><SourceRef>B600E0D03041977E0</SourceRef><TargetRef>http:/
/beta.courriels.com</TargetRef><Data>212</Data></Status><Status
xmlns="syncml:syncml1.1"><CmdID>2</CmdID><MsgRef>1</MsgRef><CmdRef>1</CmdRef
><Cmd>Alert</Cmd><SourceRef>./calendar</SourceRef><TargetRef>./calendar</Tar
getRef><Data>508</Data><Item><Data><Anchor><Next>29656604</Next><Last>0</Las
t></Anchor></Data></Item></Status><Alert
xmlns="syncml:syncml1.1"><CmdID>3</CmdID><Data>201</Data><Item><Target><LocU
RI>./calendar</LocURI></Target><Source><LocURI>./calendar</LocURI></Source><
Meta><Anchor
xmlns="syncml:metinf1.1"><Last>0</Last><Next>1092940972</Next></Anchor></Met
a></Item></Alert><Final
xmlns="syncml:syncml1.1"></Final></SyncBody></SyncML>
DEBUG - Response message:
DEBUG - <SyncML xmlns=""><SyncHdr
xmlns="syncml:syncml1.1"><VerDTD>1.1</VerDTD><VerProto>SyncML/1.1</VerProto>
<SessionID>1</SessionID><MsgID>1</MsgID><Target><LocURI>B600E0D03041977E0</L
ocURI></Target><Source><LocURI>http://beta.courriels.com</LocURI></Source><R
espURI>http://beta.courriels.com</RespURI></SyncHdr><SyncBody
xmlns=""><Status
xmlns="syncml:syncml1.1"><CmdID>1</CmdID><MsgRef>1</MsgRef><CmdRef>0</CmdRef
><Cmd>SyncHdr</Cmd><SourceRef>B600E0D03041977E0</SourceRef><TargetRef>http:/
/beta.courriels.com</TargetRef><Data>212</Data></Status><Status
xmlns="syncml:syncml1.1"><CmdID>2</CmdID><MsgRef>1</MsgRef><CmdRef>1</CmdRef
><Cmd>Alert</Cmd><SourceRef>./calendar</SourceRef><TargetRef>./calendar</Tar
getRef><Data>508</Data><Item><Data><Anchor><Next>29656604</Next><Last>0</Las
t></Anchor></Data></Item></Status><Alert
xmlns="syncml:syncml1.1"><CmdID>3</CmdID><Data>201</Data><Item><Target><LocU
RI>./calendar</LocURI></Target><Source><LocURI>./calendar</LocURI></Source><
Meta><Anchor
xmlns="syncml:metinf1.1"><Last>0</Last><Next>1092940972</Next></Anchor></Met
a></Item></Alert><Final
xmlns="syncml:syncml1.1"></Final></SyncBody></SyncML>
ERROR - Error code: 700
error message: SyncBody not found!
INFO - Sync ended.
As you can see, he say that the SyncBody isn't found, but he exist, to test
I removed the
xmlns="" from the <SyncBody xmlns=""> tag and now he seem to be able to find
the SyncBody
but now the client freeze...
---
Daniel Vandal
dvandal at infoteck.qc.ca
----- Original Message -----
From: "Karsten Fourmont" <fourmont at gmx.de>
To: <sync at lists.horde.org>
Sent: Wednesday, August 18, 2004 2:22 AM
Subject: Re: [sync] Synchronisation with an HP iPAQ h4100
> Hi,
>
> > I would like to know if the problem is the clients I use, or if I'm
> > needing to hack the SyncML code
> > to make it compliant to the client I choosen to use ?
>
> As Chuck said, this is work in progress. So any feedback is welcome. Maybe
you
> can post the debug output from /tmp/sync so we can have a look? (Make sure
to
> remove the <cred> section).
>
> Please note that syncing contacts doesn't work (yet). I just managed to
get it
> working locally, so I might be able to provide a patch for that on the
> weekend.
>
> Cheers,
> Karsten
>
>
> --
> sync mailing list - Join the hunt: http://horde.org/bounties/#sync
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: sync-unsubscribe at lists.horde.org
>
More information about the sync
mailing list