[PyWPS-dev] Testing the services via Python

nagyrobi_r at yahoo.com nagyrobi_r at yahoo.com
Fri Mar 12 10:36:14 PST 2021


Hei wonderful people.
I am new to PyWPS, which i see as a wonderful tool and i am trying to learn. I am trying to test if the dev server works without having any kind of front-end developed. I am making a mistake here, wouldn't know what. Could anybody please guide me on how i could test the processes with python?
import requests
headers = {'Content-Type':'application/gml+xml'}target_url = 'http://localhost:5000/wps?service=wps&version=1.0.0&request=execute&identifier=feature_count'
with open('/home/robocop/pywps/pywps/pywps/data/railroads.gml', 'rb') as f:    files = {'layer': f}    r = requests.post(target_url,                      headers=headers,                      files=files)
This lands me a 400 error, with exceptionCode = "NoApplicableCode"
Thank you for your time.

Kind regards,Robert Nagy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20210312/506c072b/attachment.html>


More information about the pywps-dev mailing list