Hi
First here’s some background on my project architecture.
Geoserver contains the python scripting extension
The python script under geoserver_data_dir/scripts/wps/ contains a name input, a string result, and runs a rest call to an outside rest service (ie. http://localhost:8080/restsvc/wps/execute/name)
The outside rest service then grabs a wps string from a database by name, and posts geoserver wps execute with the wps from the database to get the result.
Everything works fine if I run the rest service from a browser. The service grabs the wps and posts geoserver and returns the output string. But when I try to run everything through geoserver I don’t really get an error, but the browser keeps waiting for a response. I attached a log file that contains the logs from when I call the rest service directly and then through geoserver.
Call to run python script through geoserver:
python script rest call:
def run(name):
url=‘http://localhost:8080/restsvc/wps/execute/’
url+=name
f = urllib.urlopen(url)
return str(f.read(500))
Thank you
Dominique
(attachments)
geoserver_python_log.txt (18.6 KB)