from soaplib_handler import DjangoSoapApp from django.conf import settings import inspect class Service(DjangoSoapApp): for app in settings.INSTALLED_APPS: try: module = __import__(app + '.web_service', [], [], ['']) for key in module.__dict__: func = module.__dict__[key] if inspect.isfunction(func): if '_is_soap_method' in dir(func): locals()[key] = func except ImportError, e: pass service = Service()