home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.6)
-
- from RSIService_types import *
- import urlparse
- import types
- from ZSI.TCcompound import ComplexType, Struct
- from ZSI import client
- from ZSI.schema import GED, GTD
- import ZSI
-
- class RSIServiceLocator:
- GetMetadataPort_address = 'https://rsi.hotmail.com/rsi/rsi.asmx'
-
- def getGetMetadataPortAddress(self):
- return RSIServiceLocator.GetMetadataPort_address
-
-
- def getGetMetadataPort(self, url = None, **kw):
- if not url:
- pass
- return RSIBindingSOAP(RSIServiceLocator.GetMetadataPort_address, **kw)
-
- GetMessagePort_address = 'https://rsi.hotmail.com/rsi/rsi.asmx'
-
- def getGetMessagePortAddress(self):
- return RSIServiceLocator.GetMessagePort_address
-
-
- def getGetMessagePort(self, url = None, **kw):
- if not url:
- pass
- return RSIBindingSOAP(RSIServiceLocator.GetMessagePort_address, **kw)
-
- DeleteMessagesPort_address = 'https://rsi.hotmail.com/rsi/rsi.asmx'
-
- def getDeleteMessagesPortAddress(self):
- return RSIServiceLocator.DeleteMessagesPort_address
-
-
- def getDeleteMessagesPort(self, url = None, **kw):
- if not url:
- pass
- return RSIBindingSOAP(RSIServiceLocator.DeleteMessagesPort_address, **kw)
-
-
-
- class RSIBindingSOAP:
-
- def __init__(self, url, **kw):
- kw.setdefault('readerclass', None)
- kw.setdefault('writerclass', None)
- self.binding = client.Binding(url = url, **kw)
-
-
- def GetMetadata(self, request, soapheaders = (), **kw):
- if isinstance(request, GetMetadataMessage) is False:
- raise TypeError, '%s incorrect request type' % request.__class__
- isinstance(request, GetMetadataMessage) is False
- self.binding.Send(None, None, request, soapaction = 'http://www.hotmail.msn.com/ws/2004/09/oim/rsi/GetMetadata', soapheaders = soapheaders, **kw)
- response = self.binding.Receive(GetMetadataResponseMessage.typecode)
- return response
-
-
- def GetMessage(self, request, soapheaders = (), **kw):
- if isinstance(request, GetMessageMessage) is False:
- raise TypeError, '%s incorrect request type' % request.__class__
- isinstance(request, GetMessageMessage) is False
- self.binding.Send(None, None, request, soapaction = 'http://www.hotmail.msn.com/ws/2004/09/oim/rsi/GetMessage', soapheaders = soapheaders, **kw)
- response = self.binding.Receive(GetMessageResponseMessage.typecode)
- return response
-
-
- def DeleteMessages(self, request, soapheaders = (), **kw):
- if isinstance(request, DeleteMessagesMessage) is False:
- raise TypeError, '%s incorrect request type' % request.__class__
- isinstance(request, DeleteMessagesMessage) is False
- self.binding.Send(None, None, request, soapaction = 'http://www.hotmail.msn.com/ws/2004/09/oim/rsi/DeleteMessages', soapheaders = soapheaders, **kw)
- response = self.binding.Receive(DeleteMessagesResponseMessage.typecode)
- return response
-
-
- GetMetadataMessage = GED(MSNS.HMNS.RSI, 'GetMetadata').pyclass
- GetMetadataResponseMessage = GED(MSNS.HMNS.RSI, 'GetMetadataResponse').pyclass
- GetMessageMessage = GED(MSNS.HMNS.RSI, 'GetMessage').pyclass
- GetMessageResponseMessage = GED(MSNS.HMNS.RSI, 'GetMessageResponse').pyclass
- DeleteMessagesMessage = GED(MSNS.HMNS.RSI, 'DeleteMessages').pyclass
- DeleteMessagesResponseMessage = GED(MSNS.HMNS.RSI, 'DeleteMessagesResponse').pyclass
-