Transaction 1 - Login
This is the first transaction. It is obviously the login step for .Mac which returns a "token" for later use.
iSync Request
<?xml version="1.0" encoding="UTF-8"?> <request version="1.0" id="A"> <transaction type="authorization" version="1" id="1103527590"> <object entityname=".mac"> <attribute name="type" value="basic" /> <attribute name="password" value="" /> <attribute name="username" value="" /> <attribute name="newtoken" value="1" /> </object> </transaction> <transaction type="select" version="1" id="1103527591"> <object entityname=".mac"> <attribute name="info" value="devices" /> </object> </transaction> </request>
Apple Response
<response version="1.0" id="A"> <transaction type="authorization" version="1.0" id="1103527590"> <object entityid="100" entitytype="7" entityname=".mac" resourceid="2667495" resourceguid="269548F8-00F0-1000-8981-00039388919E"> <attribute name="token" value="[data removed for brevity]" /> </object> <result> <attribute name="resultcode" value="0" /> <attribute name="resulttext" value="success" /> </result> </transaction> <transaction type="select" version="1.0" id="1103527591"> <object entityid="100" entitytype="7" entityname=".mac" resourceid="2667495" resourceguid="269548F8-00F0-1000-8981-00039388919E"> </object> <result> <attribute name="resultcode" value="0" /> <attribute name="resulttext" value="success" /> </result> </transaction> </response>
All of the XML has been formated for easy reading. The actual conversation had no line breaks in them. I also removed some long attributes and confidential data.