calling java code from PHP
I have a PHP web application developed using symfony framework. I want to call some Java code from within my PHP pages. Java code is distributed to multiple jar files and there is one interface available to access the functionality. The input and outputs of the Java interface are XML files, text files, Java beans and some more complex objects. 

Is there any bridge available in PHP to call complex Java methods or some other solution to this problem. Alternatively, I have to write soap web services to solve this problem.
calling java code from PHP
===

I have a PHP web application developed using symfony framework. I want to call some Java code from within my PHP pages. Java code is distributed to multiple jar files and there is one interface available to access the functionality. The input and outputs of the Java interface are XML files, text files, Java beans and some more complex objects. 

Is there any bridge available in PHP to call complex Java methods or some other solution to this problem. Alternatively, I have to write soap web services to solve this problem.