INT010C - JSON Service – Test

Objectives

In order to complete this exercise, you must have completed:

INT010A – JSON Service – Define Server-side logic

INT010B - JSON Service – Create Agent-side Business Logic

Steps

1.  In Visual LANSA, locate form iiiFRM05 that you created in the previous exercise, on the Favorites tab.

2.  Right click on the form and select Execute to run it.

3.  Enter the Department Code, ADM and section code, either 01 or 02 and press the Search button

4.  The response should be something like this:

5.  Check your results are as expected, when you leave both department and section blank, and when only department is specified.

6.  If errors occur, remember to use Integrator Studio to open the server and review the trace files. You could also run the form in debug mode, if necessary.

You have now successfully completed the building of your LANSA Integrator JSON Server & Agent Solutions. What you have built and LANSA Integrator has generated is the code necessary to handle all the protocol and format details of receiving and responding to web service requests, of unwrapping and extracting the parameters and of building the JSON response.