ZXTM Control API Overview and Reference 
Version 4.0
1.3.4 listVS.py 
using 
Python 
#!/usr/bin/python 
import SOAPpy 
conn = SOAPpy.WSDL.Proxy("VirtualServer.wsdl") 
names = conn.getVirtualServerNames() 
enabled = conn.getEnabled(names) 
for i in range(0,len(names)): 
        if ( enabled[i] ): 
                print names[i] 
By default, most SOAP implementations read the location of the SOAP 
server from the WSDL file
5
.  However, for security reasons, the location 
of the ZXTM Admin Server (including the required administrator 
username and password) is not embedded in the ZXTM WSDL files. 
Most SOAP toolkits allow you to override the location specified in the 
WSDL file, but Python's SOAP.py module does not.  Before you run this 
example, edit your WSDL files.  Look for the soap:address node at the 
very end of each WSDL file and edit appropriately: 
 
   
         binding="zeusns:VirtualServerBinding"> 
      
         location="https://username.password@host:9090/soap" /> 
    
 
Run the Python script as follows
6
: 
$ ./listVS.py 
Main website 
Mail servers 
Test site 
                                               
5
 The WSDL interface specifications for the ZXTM Control API are located in 
ZEUSHOME/zxtm/etc/wsdl/. 
6
 This example was tested with Python 2.3.5 and version 0.11.5 of the SOAP.py 
library.  Earlier versions of SOAP.py (0.8.4) could not correctly parse the WSDL 
file. 
26  






New Page 1








Home : About Us : Network : Services : Support : FAQ : Control Panel : Order Online : Sitemap : Contact : Terms Of Service

java web hosting

 

 

 Our partners: | PHP: Hypertext Preprocessor | Best Web Hosting | Web Hosting Perl | Inexpensive Web Hosting |

Jsp Web Hosting | Cheapest Web Hosting | Jsp Hosting | Cheap Hosting

 

Virtualwebstudio. Business web hosting division of Web Design Plus. All rights reserved