Задать вопрос

Тел: +7 965 3737 888

497

Просмотров

1

Ответов

Automatically expose soaplib methods in WSDL

This snippet is a replacement views.py for SOAP views with on-demand WSDL generation

It iterates over your installed apps looking for web_service.py in each one, any methods decorated with @soapmethod within web_service.py will automatically be imported into the local namespace making them visible in the WSDL.

It will blindly override local objects of the same name so it's not very safe (could do with some more error checks) but it works very well.

Вопрос полезен? Да0/Нет0
file_4432.py(553.0б)
None

Ответы (1):

Ответmiketeo:11.03.2009
Ответ полезен? Да0/Нет0

Hi, you have written just what i need for my django app.

Can you recommend where should the above code snippet be placed? How can i access the wsdl URL using the above code?

Thanks for your code. -- Michael