Esempio n. 1
0
 def create_client(self, methods):
     try:
         client_class = ClientSOAP.generate(methods)
     except Exception as e:
         raise ProtocolErrors.ClientClassCreationError(
             ("Client class creation exception: %s" % e), e)
     try:
         return client_class(url=self.ip_address, port=self.port)
     except Exception as e:
         raise ProtocolErrors.ClientInstanciationError(
             ("Unable to instanciate the SOAP client: %s" % e), e)
Esempio n. 2
0
 def create_client(self,methods):
     try:
         client_class = ClientSOAP.generate(methods)
     except Exception as e:
         raise ProtocolErrors.ClientClassCreationError(
                 ("Client class creation exception: %s" % e),
                 e
             )
     try:
         return client_class(url = self.ip_address, port = self.port)
     except Exception as e:
         raise ProtocolErrors.ClientInstanciationError(("Unable to instanciate the SOAP client: %s" % e),e)
 def func():
     ClientClass = ClientSOAP.generate(['method1'])
     ClientClass('', 10464)
 def test_generation(self):
     ClientSOAP.generate(['method1'])
 def test_generation(self):
     ClientSOAP.generate(['method1'])
 def func():
     ClientClass = ClientSOAP.generate(['method1'])
     ClientClass('', 10464)