Forum Discussion
yuce_sungur_100
Nimbostratus
Feb 11, 2010pycontrolv2 is not working
I have been trying to migrate my code from pycontrolv1 to pycontrolv2.It is used to work properly for some time but now it fails.Log lines are as below:
"
2010-02-11 14:17:57,290 - DE...
L4L7_53191
Nimbostratus
Feb 12, 2010There's no way to disable the import - it's 100% required because there's a missing import in the BigIP WSDLs and Suds needs to access that URL and import that schema in order to parse the WSDL and deal with the types correctly. If you disabled it, your WSDL wouldn't parse.
A work-around I've used before is to trump my hosts file and serve the encoding schema from local host. Not ideal but it'll work for you. I'll ask around for other ideas. You could also change the destination in the WSDL programatically as well (that is, change the import destination with a string replace just before you parse it).
The newest version of suds (0.3.9) has vastly improved its caching capabilities and now pickles the parsed WSDL objects. I've done an early pass at adding the new functionality into pyControl by now enabling the cache (I had to disable it due to some caching issues in prior Suds versions). If you're interested in trying this out it may help - once you parse your wsdls it'll all be cached, including the missing import I believe. I've not finished off the code just yet but early testing looks good, with better performance too.
-Matt
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