def __init__(self, **kw): Struct.__init__(self, URIFaultDetail, [ String(pname=(ZSI_SCHEMA_URI, 'URI')), String(pname=(ZSI_SCHEMA_URI, 'localname')), ], pname=(ZSI_SCHEMA_URI, 'URIFaultDetail'), **kw)
def __init__(self, **kw): Struct.__init__( self, ZSIFaultDetail, [ String(pname=(ZSI_SCHEMA_URI, 'string')), String(pname=(ZSI_SCHEMA_URI, 'trace'), minOccurs=0), ], pname=(ZSI_SCHEMA_URI, 'FaultDetail'), **kw)
def __init__(self, **kw): Struct.__init__(self, ActorFaultDetail, [ String(pname=(ZSI_SCHEMA_URI, 'URI')), ], pname=(ZSI_SCHEMA_URI, 'ActorFaultDetail'), **kw)
def get_typecode(cls): return Struct(FaultType, [ QName(pname='faultcode'), String(pname='faultstring'), URI(pname=(SOAP.ENV, 'faultactor'), minOccurs=0), Detail.typecode, AnyElement(aname='any', minOccurs=0, maxOccurs=UNBOUNDED, processContents="lax"), ], pname=(SOAP.ENV, 'Fault'), inline=True, hasextras=0)
class FaultType: def __init__(self, faultcode=None, faultstring=None, faultactor=None, detail=None): self.faultcode = faultcode self.faultstring = faultstring self.faultactor = faultactor self.detail = detail FaultType.typecode = \ Struct(FaultType, [QName(pname='faultcode'), String(pname='faultstring'), URI(pname=(SOAP.ENV,'faultactor'), minOccurs=0), Detail.typecode, AnyElement(aname='any',minOccurs=0, maxOccurs=UNBOUNDED), ], pname=(SOAP.ENV,'Fault'), inline=True, hasextras=0, ) class ZSIHeaderDetail: def __init__(self, detail): self.any = detail ZSIHeaderDetail.typecode =\
_b64_encode = base64.encodestring class _AuthHeader: """<BasicAuth xmlns="ZSI_SCHEMA_URI"> <Name>%s</Name><Password>%s</Password> </BasicAuth> """ def __init__(self, name=None, password=None): self.Name = name self.Password = password _AuthHeader.typecode = Struct(_AuthHeader, ofwhat=(String((ZSI_SCHEMA_URI, 'Name'), typed=False), String((ZSI_SCHEMA_URI, 'Password'), typed=False)), pname=(ZSI_SCHEMA_URI, 'BasicAuth'), typed=False) class _Caller: '''Internal class used to give the user a callable object that calls back to the Binding object to make an RPC call. ''' def __init__(self, binding, name, namespace=None): self.binding = binding self.name = name self.namespace = namespace
_get_type_definition from ZSI.TCcompound import Struct import base64, httplib, Cookie, types, time, urlparse from ZSI.address import Address from ZSI.wstools.logging import getLogger as _GetLogger _b64_encode = base64.encodestring class _AuthHeader: """<BasicAuth xmlns="ZSI_SCHEMA_URI"> <Name>%s</Name><Password>%s</Password> </BasicAuth> """ def __init__(self, name=None, password=None): self.Name = name self.Password = password _AuthHeader.typecode = Struct(_AuthHeader, ofwhat=(String((ZSI_SCHEMA_URI,'Name'), typed=False), String((ZSI_SCHEMA_URI,'Password'), typed=False)), pname=(ZSI_SCHEMA_URI,'BasicAuth'), typed=False) class _Caller: '''Internal class used to give the user a callable object that calls back to the Binding object to make an RPC call. ''' def __init__(self, binding, name): self.binding, self.name = binding, name def __call__(self, *args): return self.binding.RPC(None, self.name, args, encodingStyle="http://schemas.xmlsoap.org/soap/encoding/",