Concepts

LANSA Integrator

Concepts

INT005 - Department Inquiry Bindings

To begin, you will learn a few JSM specific concepts related to XML files and bindings.  Writing or obtaining the XML would usually be the first step in your application. The XML is required by the XML Binding Wizard to map the bindings.

There will usually be two XML files involved when writing the client and server side of an application. In this course, they will be referred to, as the request and response XML:

  • The request XML is the one sent by the client and received by the server side. You will send a request containing a Department Code from the DEPTAB table.
  • The response XML is the one sent back by the server. It is usually different to the request XML received by the client. In this case, the response will be the Department Description from the DEPTAB table.

Using an XML file as input, the XML Binding Wizard can create a binding to map the XML to your LANSA fields. JSM uses the jar files to map the information in the XML file and map it into the RDMLX function. The binding is different depending on the direction of the XML, for example, whether it is being sent, or received. A SET is usually associated with an outbound binding, a GET with an inbound binding.

For the server to be able to receive the request, it will require an inbound binding of the request XML. The server will also require an outbound binding to generate the response XML. Assuming that the request and response XML are different (as they are in these exercises), you will create:

  • an inbound binding jar file with the XML Binding Wizard using the request XML as input
  • an outbound binding jar file with the XML Binding Wizard using the response XML.

This table summarizes the relationship between the input XML, the jar files and JSM command which are used for this exercise:

Input XML

Binding

Jar file

JSM Command

iiiPRO04_request.xml

Inbound

iiiPRO04_request.jar

GET

iiiPRO04_response.xml

Outbound

iiiPRO04_response.jar

SET