pidgin: 83a61767: Switch to ABFindContactsPaged instead of...
qulogic at pidgin.im
qulogic at pidgin.im
Fri Feb 3 01:56:07 EST 2012
----------------------------------------------------------------------
Revision: 83a617670da618f4dbdeeebbdb5e2813a4ad2c0c
Parent: ba2513694e6abcbdfddc66820f1df20540a36847
Author: qulogic at pidgin.im
Date: 02/02/12 23:57:18
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/83a617670da618f4dbdeeebbdb5e2813a4ad2c0c
Changelog:
Switch to ABFindContactsPaged instead of ABFindAll.
Changes against parent ba2513694e6abcbdfddc66820f1df20540a36847
patched libpurple/protocols/msn/contact.c
patched libpurple/protocols/msn/contact.h
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/contact.c ed7cd7de034213cfe5d3334512827ffa86aa1e62
+++ libpurple/protocols/msn/contact.c f29c066bab724840058c0ac05fbabaa623ce3be5
@@ -897,7 +897,7 @@ msn_parse_addressbook(MsnSession *sessio
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 @@ msn_parse_addressbook(MsnSession *sessio
/* 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 @@ msn_parse_addressbook(MsnSession *sessio
/*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;
============================================================
--- libpurple/protocols/msn/contact.h 0cecd5282ca125e3cbd4a1439dcd40d12723f10e
+++ libpurple/protocols/msn/contact.h 6a1fc7bc0f9045975abd8095187568a95951cff9
@@ -142,11 +142,13 @@ typedef enum
"</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 @@ typedef enum
"</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>"
More information about the Commits
mailing list