After you have configured a process flow and a nHTTP
channel, you are ready to execute your REST style service.
x
Procedure: How to Run a REST Style Service
To
run a REST style service:
-
Create a simple text file under the c:\temp\ directory (or
if you configured for another directory, use the one you configured
in the process flow). Name the file myfile.txt.
This will be a file that we'll try to retrieve using the HTTP REST-Style
service call.
-
Open an internet browser window and issue a REST Style service
call request by requesting the following url: http://localhost:2222/file=myfile.txt
-
The content of the file will be returned for display as shown below.
-
The created process flow also contains logic to generate an
error for a file which doesn't exist. If you provide a request URL
such as http://localhost:2222/file=ERROR.txt,
the error message will be returned in the browser indicating that
the file is not found.