Mercurial > pidgin
changeset 32487:ab9025b46134
Switch to ABFindContactsPaged instead of ABFindAll.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 03 Feb 2012 04:57:18 +0000 |
parents | 1a265986ed37 |
children | 760fd1f86a54 |
files | libpurple/protocols/msn/contact.c libpurple/protocols/msn/contact.h |
diffstat | 2 files changed, 12 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/contact.c Fri Feb 03 01:29:43 2012 +0000 +++ b/libpurple/protocols/msn/contact.c Fri Feb 03 04:57:18 2012 +0000 @@ -897,7 +897,7 @@ return FALSE; } - result = xmlnode_get_child(node, "Body/ABFindAllResponse/ABFindAllResult"); + result = xmlnode_get_child(node, "Body/ABFindContactsPagedResponse/ABFindContactsPagedResult"); if (result == NULL) { purple_debug_misc("msn", "Received no address book update\n"); return TRUE; @@ -906,7 +906,7 @@ /* I don't see this "groups" tag documented on msnpiki, need to find out if they are really there, and update msnpiki */ /*Process Group List*/ - groups = xmlnode_get_child(result, "groups"); + groups = xmlnode_get_child(result, "Groups"); if (groups != NULL) { msn_parse_addressbook_groups(session, groups); } @@ -931,12 +931,12 @@ /*Process contact List*/ purple_debug_info("msn", "Process contact list...\n"); - contacts = xmlnode_get_child(result, "contacts"); + contacts = xmlnode_get_child(result, "Contacts"); if (contacts != NULL) { msn_parse_addressbook_contacts(session, contacts); } - abNode = xmlnode_get_child(result, "ab"); + abNode = xmlnode_get_child(result, "Ab"); if (abNode != NULL) { xmlnode *node2; char *tmp = NULL;
--- a/libpurple/protocols/msn/contact.h Fri Feb 03 01:29:43 2012 +0000 +++ b/libpurple/protocols/msn/contact.h Fri Feb 03 04:57:18 2012 +0000 @@ -142,11 +142,13 @@ "</soap:Envelope>" /* Get AddressBook */ -#define MSN_GET_ADDRESS_SOAP_ACTION "http://www.msn.com/webservices/AddressBook/ABFindAll" +#define MSN_GET_ADDRESS_SOAP_ACTION "http://www.msn.com/webservices/AddressBook/ABFindContactsPaged" #define MSN_GET_ADDRESS_FULL_TIME "0001-01-01T00:00:00.0000000-08:00" #define MSN_GET_ADDRESS_UPDATE_XML \ - "<deltasOnly>true</deltasOnly>"\ - "<lastChange>%s</lastChange>" + "<filterOptions>"\ + "<deltasOnly>true</deltasOnly>"\ + "<lastChange>%s</lastChange>"\ + "</filterOptions>" #define MSN_GET_GLEAM_UPDATE_XML \ "%s"\ @@ -171,11 +173,11 @@ "</ABAuthHeader>"\ "</soap:Header>"\ "<soap:Body>"\ - "<ABFindAll xmlns=\"http://www.msn.com/webservices/AddressBook\">"\ - "<abId>00000000-0000-0000-0000-000000000000</abId>"\ + "<ABFindContactsPaged xmlns=\"http://www.msn.com/webservices/AddressBook\">"\ "<abView>Full</abView>"\ + "<extendedContent>AB AllGroups CircleResult</extendedContent>"\ "%s"\ - "</ABFindAll>"\ + "</ABFindContactsPaged>"\ "</soap:Body>"\ "</soap:Envelope>"