listWebServices() outputs the result to the console & works fine.
I want to be able to store the result in a python / jython variable ,so that I can later iterate through the list & call
setWebServiceConfiguration on each of the web services.
wsList = listWebServices() # wsList is empty
I can probably redirect the output to a file & then read the file.
To start and stop redirecting WLST output to a file, enter:
You must specify the pathname of the file to which you want to redirect WLST output. You can also optionally specify whether you want WLST output to be sent to stdout; the toStdOut argument defaults to true.
For example, to redirect WLST output to the logs/wlst.log file in the current directory and disable output from being sent to stdout, enter the following command: