Ejemplo n.º 1
0
    def __init__(self,
                 wsdl,
                 wsse=None,
                 transport=None,
                 service_name=None,
                 port_name=None,
                 plugins=None,
                 strict=True,
                 xml_huge_tree=False):
        if not wsdl:
            raise ValueError("No URL given for the wsdl")

        self.transport = transport if transport is not None else Transport()
        self.wsdl = Document(wsdl, self.transport, strict=strict)
        self.wsse = wsse
        self.plugins = plugins if plugins is not None else []
        self.xml_huge_tree = xml_huge_tree

        # options
        self.raw_response = False

        self._default_service = None
        self._default_service_name = service_name
        self._default_port_name = port_name
        self._default_soapheaders = None
Ejemplo n.º 2
0
    def __init__(
        self,
        wsdl,
        wsse=None,
        wsse_verify=True,
        transport=None,
        service_name=None,
        port_name=None,
        plugins=None,
        settings=None,
    ):
        if not wsdl:
            raise ValueError("No URL given for the wsdl")

        self.settings = settings or Settings()
        self.transport = (
            transport if transport is not None else self._default_transport()
        )
        self.wsdl = Document(wsdl, self.transport, settings=self.settings)

        self.wsse = wsse
        self.wsse_verify = wsse_verify

        self.plugins = plugins if plugins is not None else []

        self._default_service = None
        self._default_service_name = service_name
        self._default_port_name = port_name
        self._default_soapheaders = None
Ejemplo n.º 3
0
 def __init__(self,
              wsdl,
              wsse=None,
              transport=None,
              service_name=None,
              port_name=None):
     self.transport = transport or Transport()
     self.wsdl = Document(wsdl, self.transport)
     self.wsse = wsse
     self.service = self.bind(service_name=service_name,
                              port_name=port_name)
Ejemplo n.º 4
0
    def __init__(self, wsdl, wsse=None, transport=None,
                 service_name=None, port_name=None, plugins=None):
        if not wsdl:
            raise ValueError("No URL given for the wsdl")

        self.transport = transport or Transport()
        self.wsdl = Document(wsdl, self.transport)
        self.wsse = wsse
        self.plugins = plugins if plugins is not None else []

        self._default_service = None
        self._default_service_name = service_name
        self._default_port_name = port_name