Ethan_Erchinger
Apr 04, 2006Nimbostratus
Using 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 something like get_external_class_file_name I get an emtpy array returned. Any help would REALLY be appreciated.
import sys
import SOAPpy
User = 'admin'
Pwd = sys.argv[1]
SOAPpy.Config.debug = 1
Location = 'https://admin:%s@10.10.1.1/iControl/iControlPortal.cgi' %( Pwd )
server = SOAPpy.SOAPProxy(Location, namespace = "urn:iControl:LocalLB/Class")
print server.get_external_class_file_name(
SOAPpy.NameType('', 'class_names', 0, {'items': ['myList']})
)
Output:
In build.
In dump. obj=
In dump_instance. obj= tag= None
*** Outgoing HTTP headers **********************************************
POST /iControl/iControlPortal.cgi HTTP/1.0
Host: 10.1.4.2
User-agent: SOAPpy 0.12.0 (http://pywebsvcs.sf.net)
Content-type: text/xml; charset="UTF-8"
Content-length: 515
SOAPAction: "get_external_class_file_name"
************************************************************************
*** Outgoing SOAP ****************************************************** SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>
************************************************************************
code= 200
msg= OK
headers= Date: Tue, 04 Apr 2006 05:15:39 GMT
Server: Apache
SOAPServer: EasySoap++/0.6
Connection: close
Content-Type: text/xml; charset="UTF-8"
content-type= text/xml; charset="UTF-8"
data= xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:s="http://www.w3.org/2001/XMLSchema-instance"
xmlns:y="http://www.w3.org/2001/XMLSchema"
xmlns:iControl="urn:iControl"
E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> xmlns:m="urn:iControl:LocalLB/Class"> s:type="A:Array"
A:arrayType="y:string[0]">
*** Incoming HTTP headers **********************************************
HTTP/1.? 200 OK
Date: Tue, 04 Apr 2006 05:15:39 GMT
Server: Apache
SOAPServer: EasySoap++/0.6
Connection: close
Content-Type: text/xml; charset="UTF-8"
************************************************************************
*** Incoming SOAP ****************************************************** xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:s="http://www.w3.org/2001/XMLSchema-instance"
xmlns:y="http://www.w3.org/2001/XMLSchema"
xmlns:iControl="urn:iControl"
E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> xmlns:m="urn:iControl:LocalLB/Class"> s:type="A:Array"
A:arrayType="y:string[0]">
************************************************************************: []
Any ideas?
Ethan