I have a website written in PHP, the website accepts code snippets written in different programming languages (Java and C#) and perform some static analysis and returns the results to the user. I already wrote different analyzers for Java and C# respectively. The Java analyzer is written in Java; the C# analyzer is written in C#.
My problem is how the PHP website can communicate with those analyzers written in different languages in an efficient way. That is: when the PHP website receives some Java code, it can invokes the Java analyzer, etc. I can of course use PHP’s exec to launch the analyzer process, but that is too slow.
I would use Web Services, because they are easy to develop, extensible, scalable, plataform independant, and language independant, and supports standard http protocols; not sure if you will use all the advantages that SOA offers, and probably it’s not the best approach, but i would go for it.
Hope it helps.
Web Service
Web Services Tutorial