Concepts

LANSA Integrator

Concepts

INT008 - Department & Employee Server

So far in these tutorials you have learned how to send lists of items. Using fragments of XML enables you to send lists where each list item can contain repetitive information. In this exercise, for a requested department code, the server function will return a list of Employees for that department but also for each Employee the server function will return the list of skills.

  • In this exercise, the server will GET the Department Code, select all the employees for the nominated department, SET the Employee's information into a fragment for each employee, and SET a list of that employee's skills. The response XML will therefore become a repeated set of Employee fragments, each with a list of skills.
  • This table summarizes the relationship between the input XML, the style sheets, functions and JSM command used for this exercise:

    Input XML

    Binding

    JAR file

    JSM Command

    iiiPRO06_request.xml

    Inbound

    iiiPRO06_request.jar

    GET

    iiiPRO06_response.xml

    Outbound

    iiiPRO06_response.jar

    SET