Ignore:
Timestamp:
2010-08-18T19:21:44Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
f2520b5
Parents:
e0e1546
Message:

Fetch the user's profile to see if there's a display name set there. If
there is, the one in the address book should be ignored. No support for
changing the profile yet though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.h

    re0e1546 r80175a1  
    126126               "<wsse:PolicyReference xmlns=\"http://schemas.xmlsoap.org/ws/2003/06/secext\" URI=\"MBI_SSL\"></wsse:PolicyReference>" \
    127127           "</wst:RequestSecurityToken>" \
     128           "<wst:RequestSecurityToken Id=\"RST3\">" \
     129               "<wst:RequestType>http://schemas.xmlsoap.org/ws/2004/04/security/trust/Issue</wst:RequestType>" \
     130               "<wsp:AppliesTo>" \
     131                   "<wsa:EndpointReference>" \
     132                       "<wsa:Address>storage.msn.com</wsa:Address>" \
     133                   "</wsa:EndpointReference>" \
     134               "</wsp:AppliesTo>" \
     135               "<wsse:PolicyReference xmlns=\"http://schemas.xmlsoap.org/ws/2003/06/secext\" URI=\"MBI_SSL\"></wsse:PolicyReference>" \
     136           "</wst:RequestSecurityToken>" \
    128137       "</ps:RequestMultipleSecurityTokens>" \
    129138   "</Body>" \
     
    287296int msn_soap_ab_contact_del( struct im_connection *ic, bee_user_t *bu );
    288297
     298
     299#define SOAP_STORAGE_URL "https://storage.msn.com/storageservice/SchematizedStore.asmx"
     300#define SOAP_PROFILE_GET_ACTION "http://www.msn.com/webservices/storage/w10/GetProfile"
     301
     302#define SOAP_PROFILE_GET_PAYLOAD \
     303"<?xml version=\"1.0\" encoding=\"utf-8\"?>" \
     304"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" \
     305  "<soap:Header xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" \
     306    "<StorageApplicationHeader xmlns=\"http://www.msn.com/webservices/storage/w10\">" \
     307      "<ApplicationID>Messenger Client 9.0</ApplicationID>" \
     308      "<Scenario>Initial</Scenario>" \
     309    "</StorageApplicationHeader>" \
     310    "<StorageUserHeader xmlns=\"http://www.msn.com/webservices/storage/w10\">" \
     311      "<Puid>0</Puid>" \
     312      "<TicketToken>%s</TicketToken>" \
     313    "</StorageUserHeader>" \
     314  "</soap:Header>" \
     315  "<soap:Body xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" \
     316    "<GetProfile xmlns=\"http://www.msn.com/webservices/storage/w10\">" \
     317      "<profileHandle>" \
     318        "<Alias>" \
     319          "<Name>%s</Name>" \
     320          "<NameSpace>MyCidStuff</NameSpace>" \
     321        "</Alias>" \
     322        "<RelationshipName>MyProfile</RelationshipName>" \
     323      "</profileHandle>" \
     324      "<profileAttributes>" \
     325        "<ResourceID>true</ResourceID>" \
     326        "<DateModified>true</DateModified>" \
     327        "<ExpressionProfileAttributes>" \
     328          "<ResourceID>true</ResourceID>" \
     329          "<DateModified>true</DateModified>" \
     330          "<DisplayName>true</DisplayName>" \
     331          "<DisplayNameLastModified>true</DisplayNameLastModified>" \
     332          "<PersonalStatus>true</PersonalStatus>" \
     333          "<PersonalStatusLastModified>true</PersonalStatusLastModified>" \
     334          "<StaticUserTilePublicURL>true</StaticUserTilePublicURL>" \
     335          "<Photo>true</Photo>" \
     336          "<Flags>true</Flags>" \
     337        "</ExpressionProfileAttributes>" \
     338      "</profileAttributes>" \
     339    "</GetProfile>" \
     340  "</soap:Body>" \
     341"</soap:Envelope>"
     342
     343int msn_soap_profile_get( struct im_connection *ic, const char *cid );
     344
     345
    289346#endif /* __SOAP_H__ */
Note: See TracChangeset for help on using the changeset viewer.