From c5ad44f828150e176116f94220f874abc793fcc3 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Mon, 6 Jul 2009 14:54:52 +0000 Subject: [PATCH] --lite version of the WSDL file --- wsdl/gw2wsdl.py | 12 ++++++++---- wsdl/sfa.wsdl | 46 ---------------------------------------------- 2 files changed, 8 insertions(+), 50 deletions(-) diff --git a/wsdl/gw2wsdl.py b/wsdl/gw2wsdl.py index 558ad1f3..9d3a175e 100755 --- a/wsdl/gw2wsdl.py +++ b/wsdl/gw2wsdl.py @@ -164,9 +164,11 @@ def add_wsdl_ports_and_bindings (wsdl): if (function.accepts): (min_args, max_args, defaults) = function.args() for (argname,argtype) in zip(max_args,function.accepts): - arg_part = in_el.appendChild(wsdl.createElement("part")) - arg_part.setAttribute("name", argname) - arg_part.setAttribute("type", param_type(argtype)) + global interface_options + if (not interface_options.lite or (argname!="cred")): + arg_part = in_el.appendChild(wsdl.createElement("part")) + arg_part.setAttribute("name", argname) + arg_part.setAttribute("type", param_type(argtype)) # Return type return_type = function.returns @@ -289,8 +291,10 @@ def main(): help="Generate sm.wsdl") parser.add_option("-a", "--aggregate", action="store_true", dest="aggregate", help="Generate am.wsdl") - + parser.add_option("-l", "--lite", action="store_true", dest="lite", + help="Generate LITE version of the interface, in which calls exclude credentials") (interface_options, args) = parser.parse_args() + types = get_wsdl_definitions_and_types() wsdl = get_wsdl_definitions() add_wsdl_ports_and_bindings(wsdl) diff --git a/wsdl/sfa.wsdl b/wsdl/sfa.wsdl index 7564c169..8399f776 100644 --- a/wsdl/sfa.wsdl +++ b/wsdl/sfa.wsdl @@ -424,52 +424,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- 2.47.0