In this tutorial you will create the JSM Binding Script Configuration that uses the LANSA Integrator JSON binding solution that you created in the previous tutorial. Later we will use the new JSM Binding Script Configuration to prepare the JSON response.

Select each of the JSM command directives in turn, and in the Details area at the bottom, type (or copy and paste) the next JSM command from the list below:SERVICE_LOAD SERVICE(JSONBindFileService) BIND SERVICE(RESPONSETUTORDJSON) TYPE(*OUTBOUND) BINDTRACE(*YES) SET FRAGMENT(TUTORDHRESPONSE) SET FRAGMENT(TUTORDLRESPONSE) WRITE FILE(&MY_JSON_RESPONSE) CLOSE SERVICE_UNLOAD






If you wish, you can use the Insert button or the context menu to insert some comment lines describing what the script is doing. When complete, your script should look similar to this:
Note: Make sure you position the two Receive binding field values from processing sequence variables directives before their respective SET FRAGMENT directives. |
Note: When you look at your JSM binding script (as shown above) you should see asterisks on the lines containing each of the two SET FRAGMENT(…) commands. The asterisk indicates that the Exchange fields checkbox is checked for that line. If you do not see that, then go back and check that you have completed step 9 above. |
Now continue with the following step:
JSM027 – Test the JSM Binding Script Configuration that prepares the JSON Response