def test_dispatch_Echo_MIH_EPR3(self): epr = GED('http://schemas.xmlsoap.org/ws/2004/03/addressing','EndpointReference').pyclass() epr.Address = 'urn:whatever' epr.ReferenceProperties = epr.new_ReferenceProperties() class Xstr(str): typecode = TC.String(('urn:josh','mystr')) epr.ReferenceProperties.Any = [Xstr('whatever'),] loc = self.client_module.EchoWSAddr200403ServerLocator() self._setUpDispatch() port = loc.getport(endPointReference=epr, **self.getPortKWArgs()) msg = self.client_module.EchoRequest() epr2 = GTD('http://schemas.xmlsoap.org/ws/2004/03/addressing','EndpointReferenceType')(None).pyclass() epr2.Address = epr.Address epr2.ReferenceProperties = epr.ReferenceProperties msg.EchoIn = epr2 rsp = port.Echo(msg) self.failUnless(rsp.EchoResult.Address == msg.EchoIn.Address, "Bad Echo") self.failUnless(rsp.EchoResult.ReferenceProperties.Any == msg.EchoIn.ReferenceProperties.Any, "Bad Echo")
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw): ns = ns1.errorType_Def.schema TClist = [ GTD("http://www.nextone.com/ivms/schema/common", "ErrorTypes", lazy=False)(pname="errorTtype", aname="_errorTtype", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), GTD("http://www.nextone.com/ivms/schema/common", "ErrorTag", lazy=False)(pname="errorTag", aname="_errorTag", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), GTD("http://www.nextone.com/ivms/schema/common", "ErrorSeverity", lazy=False)(pname="errorSeverity", aname="_errorSeverity", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="erroAppTag", aname="_erroAppTag", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="errorPath", aname="_errorPath", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="errorMessage", aname="_errorMessage", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), GTD("http://www.nextone.com/ivms/schema/common", "errorInfoType", lazy=False)(pname="errorInfo", aname="_errorInfo", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")) ] self.attribute_typecode_dict = attributes or {} if extend: TClist += ofwhat if restrict: TClist = ofwhat ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw) class Holder: __metaclass__ = pyclass_type typecode = self def __init__(self): # pyclass self._errorTtype = None self._errorTag = None self._errorSeverity = None self._erroAppTag = None self._errorPath = None self._errorMessage = None self._errorInfo = None return Holder.__name__ = "errorType_Holder" self.pyclass = Holder
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw): ns = ns1.errorInfoType_Def.schema TClist = [ GTD("http://www.nextone.com/ivms/schema/common", "dataErrorInfo", lazy=False)(pname="badAttribute", aname="_badAttribute", minOccurs=0, maxOccurs="unbounded", nillable=True, typed=False, encoded=kw.get("encoded")), GTD("http://www.nextone.com/ivms/schema/common", "dataErrorInfo", lazy=False)(pname="badElement", aname="_badElement", minOccurs=0, maxOccurs="unbounded", nillable=True, typed=False, encoded=kw.get("encoded")), GTD("http://www.nextone.com/ivms/schema/common", "dataErrorInfo", lazy=False)(pname="okElement", aname="_okElement", minOccurs=0, maxOccurs="unbounded", nillable=True, typed=False, encoded=kw.get("encoded")), GTD("http://www.nextone.com/ivms/schema/common", "dataErrorInfo", lazy=False)(pname="errElement", aname="_errElement", minOccurs=0, maxOccurs="unbounded", nillable=True, typed=False, encoded=kw.get("encoded")), GTD("http://www.nextone.com/ivms/schema/common", "dataErrorInfo", lazy=False)(pname="noopElement", aname="_noopElement", minOccurs=0, maxOccurs="unbounded", nillable=True, typed=False, encoded=kw.get("encoded")) ] self.attribute_typecode_dict = attributes or {} if extend: TClist += ofwhat if restrict: TClist = ofwhat ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw) class Holder: __metaclass__ = pyclass_type typecode = self def __init__(self): # pyclass self._badAttribute = [] self._badElement = [] self._okElement = [] self._errElement = [] self._noopElement = [] return Holder.__name__ = "errorInfoType_Holder" self.pyclass = Holder
def __init__(self, **kw): ns = upsidewireless_com_webservice_sms.Send_Plain_Deferred.schema TClist = [ ZSI.TC.String(pname=(ns, "token"), aname="token", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns, "signature"), aname="signature", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns, "recipient"), aname="recipient", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns, "message"), aname="message", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://upsidewireless.com/webservice/sms", "SmsEncoding", lazy=False)(pname=(ns, "encoding"), aname="encoding", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname=(ns, "DelayHours"), aname="DelayHours", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname=(ns, "DelayMinutes"), aname="DelayMinutes", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns, "label"), aname="label", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")) ] kw["pname"] = ("http://upsidewireless.com/webservice/sms", "Send_Plain_Deferred") kw["aname"] = "Send_Plain_Deferred" self.attribute_typecode_dict = {} ZSI.TCcompound.ComplexType.__init__(self, None, TClist, inorder=0, **kw) class Holder: typecode = self def __init__(self): # pyclass self.token = None self.signature = None self.recipient = None self.message = None self.encoding = None self.DelayHours = None self.DelayMinutes = None self.label = None return Holder.__name__ = "Send_Plain_Deferred_Holder" self.pyclass = Holder
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw): ns = ns0.exportServiceParams_Def.schema TClist = [ ZSI.TC.String(pname="auid", aname="_auid", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname="compress", aname="_compress", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname="excludeDirNodes", aname="_excludeDirNodes", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="filePrefix", aname="_filePrefix", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://export.ws.lockss.org/", "typeEnum", lazy=False)(pname="fileType", aname="_fileType", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Ilong(pname="maxSize", aname="_maxSize", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname="maxVersions", aname="_maxVersions", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://export.ws.lockss.org/", "filenameTranslationEnum", lazy=False)(pname="xlateFilenames", aname="_xlateFilenames", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")) ] self.attribute_typecode_dict = attributes or {} if extend: TClist += ofwhat if restrict: TClist = ofwhat ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw) class Holder: __metaclass__ = pyclass_type typecode = self def __init__(self): # pyclass self._auid = None self._compress = None self._excludeDirNodes = None self._filePrefix = None self._fileType = None self._maxSize = None self._maxVersions = None self._xlateFilenames = None return Holder.__name__ = "exportServiceParams_Holder" self.pyclass = Holder
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw): ns = ns0.identTO_Def.schema TClist = [ZSI.TC.String(pname="idCase", aname="_idCase", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="dateBegin", aname="_dateBegin", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="dateEnd", aname="_dateEnd", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="surname", aname="_surname", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="name", aname="_name", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="secondName", aname="_secondName", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="birthday", aname="_birthday", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="docNumber", aname="_docNumber", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="polisS", aname="_polisS", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="polisN", aname="_polisN", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Ilong(pname="idTArea", aname="_idTArea", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Ilong(pname="idGeonimName", aname="_idGeonimName", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Ilong(pname="idGeonimType", aname="_idGeonimType", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="house", aname="_house", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Ilong(pname="idSmo", aname="_idSmo", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Ilong(pname="numTest", aname="_numTest", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Ilong(pname="agrType", aname="_agrType", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://identification.ws.eis.spb.ru/","attachListTO",lazy=False)(pname="attachList", aname="_attachList", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))] self.attribute_typecode_dict = attributes or {} if extend: TClist += ofwhat if restrict: TClist = ofwhat ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw) class Holder: __metaclass__ = pyclass_type typecode = self def __init__(self): # pyclass self._idCase = None self._dateBegin = None self._dateEnd = None self._surname = None self._name = None self._secondName = None self._birthday = None self._docNumber = None self._polisS = None self._polisN = None self._idTArea = None self._idGeonimName = None self._idGeonimType = None self._house = None self._idSmo = None self._numTest = None self._agrType = None self._attachList = None return Holder.__name__ = "identTO_Holder" self.pyclass = Holder
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw): ns = ns0.doIdentification_Def.schema TClist = [ZSI.TC.String(pname="arg0", aname="_arg0", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="arg1", aname="_arg1", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://identification.ws.eis.spb.ru/","identTO",lazy=False)(pname="arg2", aname="_arg2", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))] self.attribute_typecode_dict = attributes or {} if extend: TClist += ofwhat if restrict: TClist = ofwhat ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw) class Holder: __metaclass__ = pyclass_type typecode = self def __init__(self): # pyclass self._arg0 = None self._arg1 = None self._arg2 = None return Holder.__name__ = "doIdentification_Holder" self.pyclass = Holder
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw): ns = ns0.ReportJob_Def.schema TClist = [ZSI.TC.String(pname=(ns,"clientEmails"), aname="_clientEmails", minOccurs=0, maxOccurs="unbounded", nillable=True, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"crossClient"), aname="_crossClient", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"endDay"), aname="_endDay", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"id"), aname="_id", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"name"), aname="_name", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"startDay"), aname="_startDay", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), GTD("https://adwords.google.com/api/adwords/v13","ReportJobStatus",lazy=False)(pname=(ns,"status"), aname="_status", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded"))] self.attribute_typecode_dict = attributes or {} if extend: TClist += ofwhat if restrict: TClist = ofwhat ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw) class Holder: typecode = self def __init__(self): # pyclass self._clientEmails = [] self._crossClient = None self._endDay = None self._id = None self._name = None self._startDay = None self._status = None return Holder.__name__ = "ReportJob_Holder" self.pyclass = Holder
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw): ns = ns0.Profile_Def.schema TClist = [ZSI.TC.String(pname=(ns,"PsnId"), aname="_PsnId", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"AvatarSmall"), aname="_AvatarSmall", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname=(ns,"Level"), aname="_Level", minOccurs=1, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), ZSI.TCnumbers.Iint(pname=(ns,"Progress"), aname="_Progress", minOccurs=1, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), GTD("urn:PSN","TrophyCount",lazy=False)(pname=(ns,"TrophyCount"), aname="_TrophyCount", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("urn:PSN","ArrayOfPlayedGame",lazy=False)(pname=(ns,"PlayedGames"), aname="_PlayedGames", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))] self.attribute_typecode_dict = attributes or {} if extend: TClist += ofwhat if restrict: TClist = ofwhat ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw) class Holder: __metaclass__ = pyclass_type typecode = self def __init__(self): # pyclass self._PsnId = None self._AvatarSmall = None self._Level = None self._Progress = None self._TrophyCount = None self._PlayedGames = None return Holder.__name__ = "Profile_Holder" self.pyclass = Holder
def __init__(self, **kw): ns = ns0.GetList2_Dec.schema TClist = [ZSI.TC.String(pname=(ns,"Username"), aname="_Username", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"Password"), aname="_Password", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.interfax.net","QueryForm",lazy=False)(pname=(ns,"QueryForm"), aname="_QueryForm", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.interfax.net","QueryControl",lazy=False)(pname=(ns,"QueryControl"), aname="_QueryControl", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))] kw["pname"] = ("http://www.interfax.net","GetList2") kw["aname"] = "_GetList2" self.attribute_typecode_dict = {} ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw) class Holder: typecode = self def __init__(self): # pyclass self._Username = None self._Password = None self._QueryForm = None self._QueryControl = None return Holder.__name__ = "GetList2_Holder" self.pyclass = Holder
def __init__(self, **kw): ns = ns0.GetListResponse_Dec.schema TClist = [ZSI.TCnumbers.Iint(pname=(ns,"GetListResult"), aname="_GetListResult", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.interfax.net","ArrayOfMessageItem",lazy=False)(pname=(ns,"objMessageItem"), aname="_objMessageItem", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))] kw["pname"] = ("http://www.interfax.net","GetListResponse") kw["aname"] = "_GetListResponse" self.attribute_typecode_dict = {} ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw) class Holder: typecode = self def __init__(self): # pyclass self._GetListResult = None self._objMessageItem = None return Holder.__name__ = "GetListResponse_Holder" self.pyclass = Holder
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw): ns = ns0.InboundEmailsResult_Def.schema TClist = [ZSI.TCnumbers.Iint(pname=(ns,"ResultCode"), aname="_ResultCode", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.interfax.net","ArrayOfInboundLogEmail",lazy=False)(pname=(ns,"InboundEmails"), aname="_InboundEmails", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))] self.attribute_typecode_dict = attributes or {} if extend: TClist += ofwhat if restrict: TClist = ofwhat ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw) class Holder: typecode = self def __init__(self): # pyclass self._ResultCode = None self._InboundEmails = None return Holder.__name__ = "InboundEmailsResult_Holder" self.pyclass = Holder
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw): ns = ns0.QueryForm_Def.schema TClist = [ZSI.TCnumbers.Iint(pname=(ns,"TransactionID"), aname="_TransactionID", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"UserID"), aname="_UserID", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.Boolean(pname=(ns,"OnlyNewMessages"), aname="_OnlyNewMessages", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.interfax.net","QueryCondition",lazy=False)(pname=(ns,"RecieveTime"), aname="_RecieveTime", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))] self.attribute_typecode_dict = attributes or {} if extend: TClist += ofwhat if restrict: TClist = ofwhat ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw) class Holder: typecode = self def __init__(self): # pyclass self._TransactionID = None self._UserID = None self._OnlyNewMessages = None self._RecieveTime = None return Holder.__name__ = "QueryForm_Holder" self.pyclass = Holder
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw): ns = oim.AuthenticationFailedType_Def.schema TClist = [ ZSI.TC.AnyType(pname=(ns, "faultcode"), aname="_faultcode", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD(MSNS.HMNS.OIM, "detailType", lazy=False)(pname=(ns, "detail"), aname="_detail", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns, "faultstring"), aname="_faultstring", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns, "faultactor"), aname="_faultactor", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")) ] self.attribute_typecode_dict = attributes or {} if extend: TClist += ofwhat if restrict: TClist = ofwhat ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw) class Holder: __metaclass__ = pyclass_type typecode = self def __init__(self): # pyclass self._faultcode = None self._detail = None self._faultstring = None self._faultactor = None return Holder.__name__ = "AuthenticationFailedType_Holder" self.pyclass = Holder
def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw): ns = ns0.ApiException_Def.schema TClist = [ZSI.TC.String(pname=(ns,"code"), aname="_code", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), GTD("https://adwords.google.com/api/adwords/v13","ApiError",lazy=False)(pname=(ns,"errors"), aname="_errors", minOccurs=0, maxOccurs="unbounded", nillable=True, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"internal"), aname="_internal", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"message"), aname="_message", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname=(ns,"trigger"), aname="_trigger", minOccurs=0, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded"))] self.attribute_typecode_dict = attributes or {} if extend: TClist += ofwhat if restrict: TClist = ofwhat ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw) class Holder: typecode = self def __init__(self): # pyclass self._code = None self._errors = [] self._internal = None self._message = None self._trigger = None return Holder.__name__ = "ApiException_Holder" self.pyclass = Holder
# Joshua R. Boverhof, LBNL # See LBNLCopyright for copyright notice! ########################################################################### import sys from ZSI.ServiceContainer import AsServer from EchoWSAddr200403Server_services_server import EchoWSAddr200403Server as EchoServer from ZSI.schema import GTD """ EchoServer example service WSDL: ../../samples/Echo/Echo.wsdl """ EndpointReferenceType = GTD('http://schemas.xmlsoap.org/ws/2004/03/addressing','EndpointReferenceType') class WSAService(EchoServer): def wsa_Echo(self, ps, addr): response = EchoServer.wsa_Echo(self, ps, addr) response.EchoResult = self.request.EchoIn if isinstance(response.EchoResult, EndpointReferenceType): addr1 = response.EchoResult for a in addr.Any: if a not in addr1.ReferenceProperties.Any: raise RuntimeError, 'EPRs dont match' return response
def __init__(self, pname, ofwhat=(), extend=False, restrict=False, attributes=None, **kw): ns = ns0.PlayedGame_Def.schema TClist = [ZSI.TCnumbers.Iint(pname=(ns,"Progress"), aname="_Progress", minOccurs=1, maxOccurs=1, nillable=True, typed=False, encoded=kw.get("encoded")), GTD("urn:PSN","TrophyCount",lazy=False)(pname=(ns,"TrophyCount"), aname="_TrophyCount", minOccurs=0, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))] attributes = self.attribute_typecode_dict = attributes or {} if extend: TClist += ofwhat if restrict: TClist = ofwhat if ns0.Game_Def not in ns0.PlayedGame_Def.__bases__: bases = list(ns0.PlayedGame_Def.__bases__) bases.insert(0, ns0.Game_Def) ns0.PlayedGame_Def.__bases__ = tuple(bases) ns0.Game_Def.__init__(self, pname, ofwhat=TClist, extend=True, attributes=attributes, **kw)
# -*- coding: utf-8 -*- """ """ from ZSI.schema import GTD from imio.pm.ws.WS4PM_types import * AnnexInfo = GTD('http://ws4pm.imio.be', 'AnnexInfo')('').pyclass BasicInfo = GTD('http://ws4pm.imio.be', 'BasicInfo')('').pyclass ConfigInfo = GTD('http://ws4pm.imio.be', 'ConfigInfo')('').pyclass GroupInfo = GTD('http://ws4pm.imio.be', 'GroupInfo')('').pyclass ItemInfo = GTD('http://ws4pm.imio.be', 'ItemInfo')('').pyclass MeetingInfo = GTD('http://ws4pm.imio.be', 'MeetingInfo')('').pyclass TemplateInfo = GTD('http://ws4pm.imio.be', 'TemplateInfo')('').pyclass