Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philipsahli/testws
webservices for testing/debugging
https://github.com/philipsahli/testws
Last synced: about 2 months ago
JSON representation
webservices for testing/debugging
- Host: GitHub
- URL: https://github.com/philipsahli/testws
- Owner: philipsahli
- Created: 2013-06-24T09:06:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-27T04:16:21.000Z (over 10 years ago)
- Last Synced: 2024-04-16T06:58:21.422Z (9 months ago)
- Language: Python
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Testws
======Sometimes it is very helpful to have a very simple webservice running for testing and
debugging purposes.- heartbeat: SOAP Webservice
- dump: XML WebserviceInstallation
------------
pip install -e git+https://github.com/fatrix/testws.git#egg=testwsadd heartbeat or dump to settings.INSTALLED_APPS
"heartbeat",
"dump",add url's to your urls.py
url(r"^webservice/heartbeat/", 'heartbeat.views.heartbeat_service'),
url(r"^webservice/dump/", 'dump.views.dump_service'),Test heartbeat
--------------
The heartbeat webservice is a SOAP webservice created with spynecurl http://127.0.0.1:8000/webservice/heartbeat/service.wsdl
Call the service
curl -v -d '
' http://127.0.0.1:8000/webservice/heartbeat/Test dump
--------------
Get back the POSTed XML file (must be valid).curl -v -d '
' http://127.0.0.1:8000/webservice/dump/Ask the webservice for a specific status code (e.g. ?response_code=500)
curl -v -d '
' http://127.0.0.1:8000/webservice/dump/?response_code=500Don't dump back the payload
curl -v -d '
' http://127.0.0.1:8000/webservice/dump/?nodump