I had success to run Php/Java bridge project and test.php but i got a problem. i would like to invoke a Java method with Java Object parameter Java Source:
public class OtherClass {
public BaseBean funBean(BaseBean param){
param.setName("Bean Name");
return param;
}
}
public class BaseBean {
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String name;
}
PHP Script: I would like to it can run like that,it can't.
<?php
require_once("java/Java.inc");
//require_once("java/java_helper.php");
class BaseBean{
public $name;
}
$eh = new java("com.anima.service.OtherClass");
$cla = new BaseBean();
$cla->name = "nameTest";
$eh->funBean($cla);
?>
Or there are some solution can help me to implement this idea. I want to invoke java method with php object.
Can you please anyone help me on this.
Thanks in advance.