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 - DEBUG - sax (file:/tmp/t/LocalLB.Pool.wsdl) duration: 1.969 (seconds)
2010-02-11 14:17:57,623 - DEBUG - inserting:
2010-02-11 14:17:58,133 - DEBUG - Import:0xc809d0, importing ns="http://schemas.xmlsoap.org/soap/encoding/", location="http://schemas.xmlsoap.org/soap/encoding/"
2010-02-11 14:17:58,134 - DEBUG - opening (http://schemas.xmlsoap.org/soap/encoding/)
"
so it is trying to
"
IMP = Import('http://schemas.xmlsoap.org/soap/encoding/')
DOCTOR = ImportDoctor(IMP)
ICONTROL_URI = '/iControl/iControlPortal.cgi'
"
is there anyway to disable this? I have no internet access where I execute my script.
If this wsdl is necessary ,why not put into egg instead of downloading it?
- L4L7_53191
Nimbostratus
There'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. - L4L7_53191
Nimbostratus
I forgot to address your last question: The reason why we don't include the WSDLs is that it's brittle and could break forward or backward compatibility. We ran into this the first time around and the choice of a 'pure' proxy implementation with some decent caching is one of several reasons why we went with Suds. There's room to debate this - for example, our .Net and Java implementations use generated classes and don't parse the WSDLs on load. The downside is here is that you've generated classes against a specific version of WSDL, and you need to remember to upgrade if we change our WSDLs on the BigIP (e.g. the many additions to 10.1 WSDLs). - L4L7_53191
Nimbostratus
Update on this: It looks like this schema import is now included with the new Suds that just went into GA (0.3.9), so this call out for the schema import won't be a hard requirement once you upgrade Suds and I upgrade pyControl. I'll hopefully finish off some testing with this release and we'll be able to take advantage of some of the improvements with this release. Be on the lookout for a new version of pyControl 2. I'll post when I finish it off - likely the early part of next week. - yuce_sungur_100
Nimbostratus
Do you really need to upgrade pycontrol v2, isnt it enought to upgrade just suds? - yuce_sungur_100
Nimbostratus
I have just seen your reply about creating pickle of sud clients. - L4L7_53191
Nimbostratus
Yes, you'll probably want to upgrade to the newest version of pyControl v2. That said, I don't think that you *need* to - backward compatibility should work fine.
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