/* soap.h * * SOAP-related functions. Some manager at Microsoft apparently thought * MSNP wasn't XMLy enough so someone stepped up and changed that. This * is the result. * * Copyright (C) 2010 Wilmer van der Gaast * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation * * This program is distributed in the hope that is will be useful, * bit WITHOU ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* Thanks to http://msnpiki.msnfanatic.com/ for lots of info on this! */ #ifndef __SOAP_H__ #define __SOAP_H__ #include #include #include #include #ifndef _WIN32 #include #include #include #include #endif #include "nogaim.h" #define SOAP_HTTP_REQUEST \ "POST %s HTTP/1.0\r\n" \ "Host: %s\r\n" \ "Accept: */*\r\n" \ "SOAPAction: \"%s\"\r\n" \ "User-Agent: BitlBee " BITLBEE_VERSION "\r\n" \ "Content-Type: text/xml; charset=utf-8\r\n" \ "Cookie: MSPAuth=%s\r\n" \ "Content-Length: %d\r\n" \ "Cache-Control: no-cache\r\n" \ "\r\n" \ "%s" #define SOAP_OIM_SEND_URL "https://ows.messenger.msn.com/OimWS/oim.asmx" #define SOAP_OIM_SEND_ACTION "http://messenger.msn.com/ws/2004/09/oim/Store" #define SOAP_OIM_SEND_PAYLOAD \ "" \ "" \ "" \ "" \ "" \ "" \ "" \ "http://messenger.msn.com" \ "%d" \ "" \ "" \ "" \ "text" \ "" \ "MIME-Version: 1.0\r\n" \ "Content-Type: text/plain; charset=UTF-8\r\n" \ "Content-Transfer-Encoding: base64\r\n" \ "X-OIM-Message-Type: OfflineMessage\r\n" \ "X-OIM-Run-Id: {F9A6C9DD-0D94-4E85-9CC6-F9D118CC1CAF}\r\n" \ "X-OIM-Sequence-Num: %d\r\n" \ "\r\n" \ "%s" \ "" \ "" \ "" int msn_soap_oim_send( struct im_connection *ic, const char *to, const char *msg ); int msn_soap_oim_send_queue( struct im_connection *ic, GSList **msgq ); #define SOAP_MEMLIST_URL "https://byrdr.omega.contacts.msn.com/abservice/SharingService.asmx" #define SOAP_MEMLIST_ACTION "http://www.msn.com/webservices/AddressBook/FindMembership" #define SOAP_MEMLIST_PAYLOAD \ "" \ "" \ "" \ "" \ "CFE80F9D-180F-4399-82AB-413F33A1FA11" \ "false" \ "Initial" \ "" \ "" \ "false" \ "" \ "" \ "" \ "MessengerInvitationSocialNetworkSpaceProfile" \ "" \ "" \ "" int msn_soap_memlist_request( struct im_connection *ic ); #endif /* __SOAP_H__ */