Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 def __init__(self, **kw):
     Struct.__init__(self,
                     ActorFaultDetail, [
                         String(pname=(ZSI_SCHEMA_URI, 'URI')),
                     ],
                     pname=(ZSI_SCHEMA_URI, 'ActorFaultDetail'),
                     **kw)
Exemple #4
0
import collections
_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
Exemple #5
0
    def __init__(self, _any=None):
        self.any = _any

Detail.typecode = Struct(Detail, [AnyElement(aname='any',minOccurs=0, maxOccurs="unbounded",processContents="lax")], pname='detail', minOccurs=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, processContents="lax"),
        ],
        pname=(SOAP.ENV,'Fault'),
        inline=True,
        hasextras=0,
    )

class ZSIHeaderDetail:
    def __init__(self, detail):
        self.any = detail

ZSIHeaderDetail.typecode =\
    Struct(ZSIHeaderDetail,