How do I launch a function in LANSA Integrator based on the file format received?
|Date:||17 April 2003|
|Abstract:||How do I launch a function in LANSA Integrator based on the file format received?|
|Submitted By:||LANSA Support|
|Last Review:||November 2010|
I'm evaluating LANSA Integrator against a requirement we have. We need to integrate four applications developed and running on different platforms - one of them is an iSeries application. Since it is a mullti-platform scenario, the iSeries application receives data in different formats, e.g., orders from different applications in XML, Excel, CSV, RTF.... formats.
How do I launch a function in Integrator based on the file format received? e.g., If I get XML then I should use XML Services (without using the User Agent). Further, if I have to use the MQ Series service, can you tell me about MQ Series configuration?
The solution approach will depend to some extent on the data interchange scenarios you can handle.
- If you are using the HTTPClient Integrator service as Web services using JSMDirect, as the RDML developer you can obtain the MIME type of the transmission being requested and programmatically determine the content handler. See LANSA's Web-site case-studies for a very similar solution.
- If you are using the HTTPClient Integrator service as a client to make HTTP requests and send HTTP responses, you should know the content type you wish to handle and program for that case.
- For the other transport mechanisms, you will need to programmatically direct what content you handle.
- If you wish to program in Java, you can have Integrator handle other scenarios.
Regarding MQ Series, LANSA Integrator provides some BIFS (Built-In Functions) to allow you to pull and push data to MQ. Once you have used these BIFS to get the data, you can use Integrator services to process the data. There are examples in the LANSA documentation.