Ignore:
Timestamp:
2012-02-11T17:26:41Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7d4ffc2
Parents:
4f37a98
Message:

Drop dead support for MSN offline messages (that SOAP server isn't even in
DNS anymore). Bug #874 for adding support for the new (much simpler, for a
change) way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.h

    r4f37a98 rdcf155d  
    144144
    145145int msn_soap_passport_sso_request( struct im_connection *ic, const char *nonce );
    146 
    147 
    148 #define SOAP_OIM_SEND_URL "https://ows.messenger.msn.com/OimWS/oim.asmx"
    149 #define SOAP_OIM_SEND_ACTION "http://messenger.live.com/ws/2006/09/oim/Store2"
    150 
    151 #define SOAP_OIM_SEND_PAYLOAD \
    152 "<?xml version=\"1.0\" encoding=\"utf-8\"?>" \
    153 "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" \
    154 "<soap:Header>" \
    155   "<From memberName=\"%s\" friendlyName=\"=?utf-8?B?%s?=\" xml:lang=\"nl-nl\" proxy=\"MSNMSGR\" xmlns=\"http://messenger.msn.com/ws/2004/09/oim/\" msnpVer=\"%s\" buildVer=\"%s\"/>" \
    156   "<To memberName=\"%s\" xmlns=\"http://messenger.msn.com/ws/2004/09/oim/\"/>" \
    157   "<Ticket passport=\"%s\" appid=\"%s\" lockkey=\"%s\" xmlns=\"http://messenger.msn.com/ws/2004/09/oim/\"/>" \
    158   "<Sequence xmlns=\"http://schemas.xmlsoap.org/ws/2003/03/rm\">" \
    159     "<Identifier xmlns=\"http://schemas.xmlsoap.org/ws/2002/07/utility\">http://messenger.msn.com</Identifier>" \
    160     "<MessageNumber>%d</MessageNumber>" \
    161   "</Sequence>" \
    162 "</soap:Header>" \
    163 "<soap:Body>" \
    164   "<MessageType xmlns=\"http://messenger.msn.com/ws/2004/09/oim/\">text</MessageType>" \
    165   "<Content xmlns=\"http://messenger.msn.com/ws/2004/09/oim/\">" \
    166     "MIME-Version: 1.0\r\n" \
    167     "Content-Type: text/plain; charset=UTF-8\r\n" \
    168     "Content-Transfer-Encoding: base64\r\n" \
    169     "X-OIM-Message-Type: OfflineMessage\r\n" \
    170     "X-OIM-Run-Id: {F9A6C9DD-0D94-4E85-9CC6-F9D118CC1CAF}\r\n" \
    171     "X-OIM-Sequence-Num: %d\r\n" \
    172     "\r\n" \
    173     "%s" \
    174   "</Content>" \
    175 "</soap:Body>" \
    176 "</soap:Envelope>"
    177 
    178 int msn_soap_oim_send( struct im_connection *ic, const char *to, const char *msg );
    179 int msn_soap_oim_send_queue( struct im_connection *ic, GSList **msgq );
    180146
    181147
Note: See TracChangeset for help on using the changeset viewer.