if (ca_file): response = s.set_ca_certs(ca_file) if (response): print(response.results_reason() + "\n") sys.exit(2) # # Set the TCP port used for API invocations on the server. # if (use_port != -1) : s.set_port(use_port) # This is needed for -X option. if (showxml == 2) : s.set_debug_style("NA_PRINT_DONT_PARSE") if (inputxml > 0) : try : minidom.parseString(api) except: print("\nParse Error\n") sys.exit(1) rxi = s.parse_raw_xml(api) if (showxml == 1) : print ("INPUT:\n" + rxi.sprintf() + "\n")
if (ca_file): response = s.set_ca_certs(ca_file) if (response): print(response.results_reason() + "\n") sys.exit(2) # # Set the TCP port used for API invocations on the server. # if (use_port != -1): s.set_port(use_port) # This is needed for -X option. if (showxml == 2): s.set_debug_style("NA_PRINT_DONT_PARSE") if (inputxml > 0): try: minidom.parseString(api) except: print("\nParse Error\n") sys.exit(1) rxi = s.parse_raw_xml(api) if (showxml == 1): print("INPUT:\n" + rxi.sprintf() + "\n")