In this tutorial, you will use LANSA Integrator Studio to create a project that will later contain the JSON binding solutions you will create in later tutorials.
In the new project, you will pre-define some JSON server types (simple and compound user-defined types) that will be used later in the JSON binding solutions.
- Open LANSA Integrator Studio from the Tools menu within the LANSA Composer client program.
- Right-click on Projects and select New Project from the popup menu. Type GetTutordJSON as the new project name and click OK.
- Right-click on Solutions and select JSON Server Types from the popup menu.
- Right-click anywhere in the LANSA Integrator JSON Type Editor window and select New Type. Type TutordHJSON as a new type.
- Right-click on TutordHJSON and select New Element. Enter the name of BatchNumber. Click OK.
- Repeat step 5 for CustomerNumber, OrderNumber & OrderDate. When complete, click Cancel. All of the values are a type String. If you make a mistake, right-click on the element in question where you can then Edit or Delete.
Repeat step 4 and enter the typed name of TutOrdLJSON. Then repeat step 5 entering the following elements:
BatchNumber Type="String"
OrderNumber Type="String"
OrderLineNumber Type="String"
LinePrice Type="Double"
LineQuantity Type="Int"
LineValue Type="Double"
PartNumber Type="String"
Right-click anywhere in the LANSA Integrator JSON Type Editor window and select New Type. Type TutordRequestJSON as a new type.
- Right-click on TutordRequestJSON and select New Element. Enter the name of BatchNumber. Click OK.
- Repeat step 9 for OrderNumber. When complete, click Cancel. All of the values are a type String.
- Right-click anywhere in the LANSA Integrator JSON Type Editor window and select New Type. Type TutordResponseJSON as a new type.
- Right-click on TutordResponseJSON and select New Element. Enter the name of TutordHResponse. In the value, click on the drop-down and select TutordHJSON. Click OK.
- Repeat step 12 and call the new element of TutordLResponse. In the value, click on the drop-down and select TutordLJSON[…]. Click OK
- Your JSON server types should now look like this:
- Click File, Save (or Ctrl-S) to save your JSON Server types then File, Exit (or Alt-F4) to close the LANSA Integrator JSON Type Editor window.
Now continue with the following step:
JSM022 - Create, Build and Deploy the JSON Binding Solution for the JSON Request









