Integration between two web applications electronically

Asked By 270 points N/A Posted on -
qa-featured

I need to design a module in Java for exchanging information between two web applications. I have been researching online on the methods available and came across Web Services, XML, Text and EDI. Looking towards the future, what will be most appropriate?

SHARE
Best Answer by DimaZ
Answered By 0 points N/A #91684

Integration between two web applications electronically

qa-featured

You need to consider what each web application is capable of, prior to choosing a method to pass around data. There are many more integration methods that can be devised. The integration type depends on the following:

  • If the web applications are homogeneous (same technology, same platform) or heterogeneous (different technology. A different platform).
  • If the web applications reside on the same server.
  • If the web applications reside on different servers.
  • The methods / capabilities of the web application for processing data. I. e. can it read ASCII data (plain text) or binary data (serialized objects).

The above need to be considered first prior to deciding on a suitable method for data exchange.

Answered By 5 points N/A #91686

Integration between two web applications electronically

qa-featured

DimaZ, you might have caused a stack overflow on Chao! Chao, you need to tell us the type of the web applications and their comparative locations for us to help you better.

Answered By 270 points N/A #91687

Integration between two web applications electronically

qa-featured

The first one is a Java web application, running on a JBoss server. The other application is a banking system, which is also in Java. The problem is, we are not allowed to modify the banking system.

Answered By 5 points N/A #91688

Integration between two web applications electronically

qa-featured

Web services require a host and a client. That is, there should be a "service" implemented and there should be a "client" implemented as well. Web services are the future of todays messaging for integration. It provides seamless connectivity by NOT requiring to have any client libraries installed. The web service "client" code is generated using the Web Service Descriptor Language file. This is the best method to approach an integration project. However, we see that in your case, it is going to be tricky to use a web service.

Answered By 0 points N/A #91689

Integration between two web applications electronically

qa-featured

XML stands for Extensible Markup Language. It's a structured document format. The file type is a plain text ASCII file. The basic rule in an XML file is that it should have a "tree" like structure with a root element and sub elements. Each element must be closed and data can only be contained inside an element.

This means you cannot have literal data between two adjacent elements. XML is a recommended "transport" format for exchanging data between systems. This requires an XML capable program or routines written on both web applications. Does the core banking system have a batch upload facility? We could devise an integration based on it.

Answered By 270 points N/A #91690

Integration between two web applications electronically

qa-featured

The core banking system supports only plain text files which are of fixed length. Assuming we use XML as the main transport medium, is there a possibility of converting an XML file to a fixed length text file?

Answered By 0 points N/A #91691

Integration between two web applications electronically

qa-featured

That is very interesting. Yes, there is a possible method of converting an XML to a plain fixed length file. For this you need to use XSLT. XSLT stands for XSL-Transform (Extensible Stylesheet Language). This is yet another XML file, with special commands. You pass an XSLT file with an XML file to an XSL-Transform engine. The engine reads the XSL file, and based on the defined rules, transforms the XML data and sends out the output.

Answered By 270 points N/A #91692

Integration between two web applications electronically

qa-featured

That is very cool. Could you provide me a simple code so that I can better understand this transformation process?

Best Answer
Best Answer
Answered By 0 points N/A #91693

Integration between two web applications electronically

qa-featured

The data XML is as follows:

Combining the above will generate a list of rows with a comma between 2 fields:

Tom, Jones
Jim, Harry

You can use the DOMDocument object or a SAXParser object in Java for the transformation.

Answered By 270 points N/A #91694

Integration between two web applications electronically

qa-featured

Thank you DimaZ for the code! I will use it for the integration! Thank you again for all the help and advice!

Related Questions