Пример #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
from ZSI.TC import QName, URI, String, XMLString, AnyElement, UNBOUNDED

from ZSI.wstools.Namespaces import SOAP, ZSI_SCHEMA_URI
from ZSI.wstools.c14n import Canonicalize
from ZSI.TC import ElementDeclaration

import traceback, io as StringIO


class Detail:
    def __init__(self, any=None):
        self.any = any


Detail.typecode = Struct(
    Detail, [AnyElement(aname='any', minOccurs=0, maxOccurs="unbounded")],
    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
Пример #3
0
from ZSI.TCcompound import Struct
from ZSI.TC import QName, URI, String, XMLString, AnyElement, UNBOUNDED

from ZSI.wstools.Namespaces import SOAP, ZSI_SCHEMA_URI
from ZSI.wstools.c14n import Canonicalize
from ZSI.TC import ElementDeclaration

import traceback, cStringIO as StringIO


class Detail:
    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"),
Пример #4
0
from ZSI.TC import QName, URI, String, XMLString, AnyElement, UNBOUNDED

from ZSI.wstools.Namespaces import SOAP, ZSI_SCHEMA_URI
from ZSI.wstools.c14n import Canonicalize
from ZSI.TC import ElementDeclaration

import traceback, cStringIO as StringIO


class Detail:
    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