How to: |
After you have configured a process flow and a nHTTP channel, you are ready to execute your REST style service.
To run a REST style service:
http://localhost:2222/get?file=myfile.txt
The content of the file will be returned for display, as shown in the following image.
The created process flow also contains logic to generate an error for a file that does not exist. For example, if you provide a request URL, such as http://localhost:2222/get?file=error.txt, then the following error message will be returned in the browser indicating that the file is not found.