L.2 How to test and execute the FTP Web Services?
All the web services require a JSON template (request.json) to be submitted along with the web service request. The JSON template provides the necessary details to the web service allowing it to perform the requested action.
General steps for testing/executing the web service calls:
- Testing of these web services can be done by using any standard web API testing tool like a postman, HTTP Master, or Rest-assured.
- We have provided examples of testing these services using postman. This is detailed under Section 'Using web API testing tool'. For other web API testing tools, the process will be similar.
- To support the testing of the FTP web services, we provide a sample java program that can be called directly. This jar file allows you to call the FTP web services. Please ensure the FTPWSclient.jar file is in the same folder as the JSON file(s). To receive a copy of the sample program, please raise a service request with the OFSAA support team. You can also view sample java code at the end of this document. Usage of this test program is detailed under the section Use a Java Client Program.