$ while true; do echo -e "HTTP/1.1 200 OK\r\n\r\n$(cat wsresponse.file)" | nc -l 9999; doneWhere wsresponse.file is the file with the web service response.
In this case, the web service mock is listening in the port 9999. Just change the port as your needs.
0 comments:
Post a Comment