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
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
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)
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