To those who want to test SyncML Settings to be sent over sms, please
note that the XML must be urlencoded as documented but the XML won't
work if the password in the XML <Cred> is not base64encoded, so this is
the working XML to be sent urlencoded:

<SyncSettings>
    <Version>1.0</Version>
    <HostAddr>http://syncml.server.com</HostAddr>
    <RemoteDB>
<CTType>text/x-vcard</CTType>
<CTVer>2.1</CTVer>
<URI>contact</URI>
<Name>Address Book</Name>
</RemoteDB>
<Name>Synchonization</Name>
<Auth>
<AuthLevel>1</AuthLevel>
<AuthScheme>1</AuthScheme>
<Username>yourusername</Username>
<Cred>cGFzc3dvcmQ=</Cred>
</Auth>
</SyncSettings>

This is the encoded version:
%3CSyncSettings%3E%0A++++%3CVersion%3E1.0%3C%2FVersion%3E%0A++++%3CHostAddr%3Ehttp%3A%2F%2Fsyncml.server.com%3C%2FHostAddr%3E%0A++++%3CRemoteDB%3E%0A%3CCTType%3Etext%2Fx-vcard%3C%2FCTType%3E%0A%3CCTVer%3E2.1%3C%2FCTVer%3E%0A%3CURI%3Econtact%3C%2FURI%3E%0A%3CName%3EAddress+Book%3C%2FName%3E%0A%3C%2FRemoteDB%3E%0A%3CName%3ESynchonization%3C%2FName%3E%0A%3CAuth%3E%0A%3CAuthLevel%3E1%3C%2FAuthLevel%3E%0A%3CAuthScheme%3E1%3C%2FAuthScheme%3E%0A%3CUsername%3Eyourusername%3C%2FUsername%3E%0A%3CCred%3EcGFzc3dvcmQ%3D%3C%2FCred%3E%0A%3C%2FAuth%3E%0A%3C%2FSyncSettings%3E


Enjoy
Julien

Reply via email to