def Receive(self, replytype, **kw):
'''Parse message, create Python object.
KeyWord data:
faults -- list of WSDL operation.fault typecodes
wsaction -- If using WS-Address, must specify Action value we expect to
receive.
'''
self.ReceiveSOAP(**kw)
if self.local.ps.IsAFault():
msg = FaultFromFaultMessage(self.local.ps)
raise FaultException(msg)
tc = replytype
if hasattr(replytype, 'typecode'):
tc = replytype.typecode
reply = self.local.ps.Parse(tc)
if self.address is not None:
self.address.checkResponse(self.local.ps, kw.get('wsaction'))
return reply
评论列表
文章目录