Пример #1
0
 def __call__(self, *args, **kwargs):
     """Invoke the method."""
     clientclass = self.clientclass(kwargs)
     client = clientclass(self.client, self.method)
     try:
         return client.invoke(args, kwargs)
     except WebFault as e:
         if self.faults():
             raise
         return http.client.INTERNAL_SERVER_ERROR, e
Пример #2
0
 def __call__(self, *args, **kwargs):
     """Invoke the method."""
     clientclass = self.clientclass(kwargs)
     client = clientclass(self.client, self.method)
     try:
         return client.invoke(args, kwargs)
     except WebFault as e:
         if self.faults():
             raise
         return http.client.INTERNAL_SERVER_ERROR, e