X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=wsdl%2Fapi2wsdl.py;h=296048e4231ac9718509350e90e3f7a7edcc69c8;hb=1e4558f1e8eaec5f69f3832a8599d0dfa1531f00;hp=539a39a0f5c05136eea541e5b143039850771fc2;hpb=ab5a4715c79fe648010708b762b7f996d46a16c6;p=plcapi.git diff --git a/wsdl/api2wsdl.py b/wsdl/api2wsdl.py index 539a39a..296048e 100755 --- a/wsdl/api2wsdl.py +++ b/wsdl/api2wsdl.py @@ -6,13 +6,12 @@ # Current limitations: # - Invalid for the following reasons # - The types are python types, not WSDL types -# - I'm not sure of what to do with the auth structure - Need to figure out PLCAPI more closely +# - I'm not sure of what to do with the auth structure import os, sys import time import pdb import xml.dom.minidom -import xml.dom.ext import inspect import globals @@ -24,12 +23,6 @@ from PLC.Parameter import Parameter, Mixed, python_type, xmlrpc_type api = PLCAPI(None) -try: - set -except NameError: - from sets import Set - set = Set - # Class functions def param_type(param): @@ -152,5 +145,5 @@ add_wsdl_ports_and_bindings(wsdl) add_wsdl_service(wsdl) -xml.dom.ext.PrettyPrint(wsdl) +print wsdl.toprettyxml()