Forum Discussion
Rich_W__77692
Nov 24, 2013Cirrus
Python/BigSuds using local WSDLs?
Can BigSuds use a local copy of the WSDLs? I ask because sometimes I have to loop through literally 600+ devices and if I only had to parse the WSDLs once, that would speed things up a lot.
Than...
Serge_van_Ginde
Nov 25, 2013Nimbostratus
Just had a quick look at the bigsuds source and it appears this is already possible!
just initialize your api as here:
api = bigsuds.BIGIP(hostname=bigip, username=user, password=password, cachedir=/tmp/)
(cachedir defaults to None; you can also enable debug=True)
- Rich_W__77692Nov 25, 2013CirrusI looked at the code, too. I think the "cachedir" paramiter for cache'ing the WSDLs after they are downloaded from the device and NOT for accessing local copies of WSDLs ... :( What I would like to do is have a local copy of the WSDLs like the Ruby gem or the java libs ... Oh well ...
- Serge_van_GindeNov 25, 2013NimbostratusThe cache lifetime is hard coded to 1 day. There's nothing stopping you from patching that :-)
- Rich_W__77692Nov 25, 2013CirrusI saw that ... I think it only caches it for the device you're accessing and will read from the cache if it exists. I want to be able to load the WSDLs once and plow through 600+ devices, I access devices running v9 and up. The WSDLs are backwords compatible with all version, so if I have the latest set of all the WSDLs, I'm all set. All I have to do is get the device's version and make the righrt calls ...
- Serge_van_GindeNov 25, 2013NimbostratusShould be do able to tweak the caching code to permanently use that cache.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects