Пример #1
0
 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)
Пример #2
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 =\
    Struct(ZSIHeaderDetail,