Ignore:
Timestamp:
2010-12-12T00:25:17Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
8eec79d
Parents:
c775a58
Message:

Allow changing MSN display names in server-side profiles. (I.e. the changes
are finally always persistent again.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.h

    rc775a58 r76c89dc7  
    303303#define SOAP_STORAGE_URL "https://storage.msn.com/storageservice/SchematizedStore.asmx"
    304304#define SOAP_PROFILE_GET_ACTION "http://www.msn.com/webservices/storage/w10/GetProfile"
     305#define SOAP_PROFILE_SET_DN_ACTION "http://www.msn.com/webservices/storage/w10/UpdateProfile"
    305306
    306307#define SOAP_PROFILE_GET_PAYLOAD \
     
    345346"</soap:Envelope>"
    346347
     348#define SOAP_PROFILE_SET_DN_PAYLOAD \
     349"<?xml version=\"1.0\" encoding=\"utf-8\"?>" \
     350"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" \
     351  "<soap:Header xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" \
     352    "<StorageApplicationHeader xmlns=\"http://www.msn.com/webservices/storage/w10\">" \
     353      "<ApplicationID>Messenger Client 9.0</ApplicationID>" \
     354      "<Scenario>Initial</Scenario>" \
     355    "</StorageApplicationHeader>" \
     356    "<StorageUserHeader xmlns=\"http://www.msn.com/webservices/storage/w10\">" \
     357      "<Puid>0</Puid>" \
     358      "<TicketToken>%s</TicketToken>" \
     359    "</StorageUserHeader>" \
     360  "</soap:Header>" \
     361  "<soap:Body xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" \
     362    "<UpdateProfile xmlns=\"http://www.msn.com/webservices/storage/w10\">" \
     363      "<profile>" \
     364        "<ResourceID>%s</ResourceID>" \
     365        "<ExpressionProfile>" \
     366          "<FreeText>Update</FreeText>" \
     367          "<DisplayName>%s</DisplayName>" \
     368          "<Flags>0</Flags>" \
     369        "</ExpressionProfile>" \
     370      "</profile>" \
     371    "</UpdateProfile>" \
     372  "</soap:Body>" \
     373"</soap:Envelope>"
     374
    347375int msn_soap_profile_get( struct im_connection *ic, const char *cid );
    348 
     376int msn_soap_profile_set_dn( struct im_connection *ic, const char *dn );
    349377
    350378#endif /* __SOAP_H__ */
Note: See TracChangeset for help on using the changeset viewer.