Forum Discussion
Ethan_Erchinger
Nimbostratus
Apr 04, 2006Using Python and SOAPpy with iControl
Hello,
I'm definetly a newby when it comes to SOAP, and using SOAPpy. I can call simple functions in the LocalLB/Class wsdl, like get_address_class_list(). But when trying to call somethin...
Apr 06, 2006
We don't officially support Python as a dev language but I do know that several users out there are using it. One thing that I've heard is that SOAPpy doesn't support 2-dimensional arrays which we use in a large majority of our methods.
As for your issue, since I don't know Python, I'm going solely by the SOAP trace. In your request, the signature for get_external_calss_file_name is the following
String[] LocalLB::Class::get_external_class_file_name(
in String[] class_names
);
Your code:
print server.get_external_class_file_name(
SOAPpy.NameType('', 'class_names', 0, {'items': ['myList']})
)
resulted in this message
xmlns:ns1="urn:iControl:LocalLB/Class" SOAP-ENC:root="1">
items="">
The class_names parameter needs to be a single dimentional array of type string with the requested class names passed in the array. Your python code is making the class_names parameter a single type with empty value. It should result in something like this:
xmlns:ns1="urn:iControl:LocalLB/Class" SOAP-ENC:root="1">
SOAP-ENC:arrayType="SOAP-ENC:Array[1]">
class_name_goes_here
-Joe
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