home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 January / maximum-cd-2012-01.iso / DiscContents / digsby_setup.exe / lib / msn / SOAP / MSNRSIService / RSIService_client.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2011-10-05  |  4.2 KB  |  89 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. from RSIService_types import *
  5. import urlparse
  6. import types
  7. from ZSI.TCcompound import ComplexType, Struct
  8. from ZSI import client
  9. from ZSI.schema import GED, GTD
  10. import ZSI
  11.  
  12. class RSIServiceLocator:
  13.     GetMetadataPort_address = 'https://rsi.hotmail.com/rsi/rsi.asmx'
  14.     
  15.     def getGetMetadataPortAddress(self):
  16.         return RSIServiceLocator.GetMetadataPort_address
  17.  
  18.     
  19.     def getGetMetadataPort(self, url = None, **kw):
  20.         if not url:
  21.             pass
  22.         return RSIBindingSOAP(RSIServiceLocator.GetMetadataPort_address, **kw)
  23.  
  24.     GetMessagePort_address = 'https://rsi.hotmail.com/rsi/rsi.asmx'
  25.     
  26.     def getGetMessagePortAddress(self):
  27.         return RSIServiceLocator.GetMessagePort_address
  28.  
  29.     
  30.     def getGetMessagePort(self, url = None, **kw):
  31.         if not url:
  32.             pass
  33.         return RSIBindingSOAP(RSIServiceLocator.GetMessagePort_address, **kw)
  34.  
  35.     DeleteMessagesPort_address = 'https://rsi.hotmail.com/rsi/rsi.asmx'
  36.     
  37.     def getDeleteMessagesPortAddress(self):
  38.         return RSIServiceLocator.DeleteMessagesPort_address
  39.  
  40.     
  41.     def getDeleteMessagesPort(self, url = None, **kw):
  42.         if not url:
  43.             pass
  44.         return RSIBindingSOAP(RSIServiceLocator.DeleteMessagesPort_address, **kw)
  45.  
  46.  
  47.  
  48. class RSIBindingSOAP:
  49.     
  50.     def __init__(self, url, **kw):
  51.         kw.setdefault('readerclass', None)
  52.         kw.setdefault('writerclass', None)
  53.         self.binding = client.Binding(url = url, **kw)
  54.  
  55.     
  56.     def GetMetadata(self, request, soapheaders = (), **kw):
  57.         if isinstance(request, GetMetadataMessage) is False:
  58.             raise TypeError, '%s incorrect request type' % request.__class__
  59.         isinstance(request, GetMetadataMessage) is False
  60.         self.binding.Send(None, None, request, soapaction = 'http://www.hotmail.msn.com/ws/2004/09/oim/rsi/GetMetadata', soapheaders = soapheaders, **kw)
  61.         response = self.binding.Receive(GetMetadataResponseMessage.typecode)
  62.         return response
  63.  
  64.     
  65.     def GetMessage(self, request, soapheaders = (), **kw):
  66.         if isinstance(request, GetMessageMessage) is False:
  67.             raise TypeError, '%s incorrect request type' % request.__class__
  68.         isinstance(request, GetMessageMessage) is False
  69.         self.binding.Send(None, None, request, soapaction = 'http://www.hotmail.msn.com/ws/2004/09/oim/rsi/GetMessage', soapheaders = soapheaders, **kw)
  70.         response = self.binding.Receive(GetMessageResponseMessage.typecode)
  71.         return response
  72.  
  73.     
  74.     def DeleteMessages(self, request, soapheaders = (), **kw):
  75.         if isinstance(request, DeleteMessagesMessage) is False:
  76.             raise TypeError, '%s incorrect request type' % request.__class__
  77.         isinstance(request, DeleteMessagesMessage) is False
  78.         self.binding.Send(None, None, request, soapaction = 'http://www.hotmail.msn.com/ws/2004/09/oim/rsi/DeleteMessages', soapheaders = soapheaders, **kw)
  79.         response = self.binding.Receive(DeleteMessagesResponseMessage.typecode)
  80.         return response
  81.  
  82.  
  83. GetMetadataMessage = GED(MSNS.HMNS.RSI, 'GetMetadata').pyclass
  84. GetMetadataResponseMessage = GED(MSNS.HMNS.RSI, 'GetMetadataResponse').pyclass
  85. GetMessageMessage = GED(MSNS.HMNS.RSI, 'GetMessage').pyclass
  86. GetMessageResponseMessage = GED(MSNS.HMNS.RSI, 'GetMessageResponse').pyclass
  87. DeleteMessagesMessage = GED(MSNS.HMNS.RSI, 'DeleteMessages').pyclass
  88. DeleteMessagesResponseMessage = GED(MSNS.HMNS.RSI, 'DeleteMessagesResponse').pyclass
  89.