From: <php...@li...> - 2011-02-24 21:40:03
|
Hi, > 1. I don't understand the remark: > "Your java object backed by a php > instance doesn't have any public methods." It's a java.lang.Object which implements no interfaces. Not very useful unless your library detects that it is a proxy and directly calls its invocation handler. Please see the java_closure() API for details at http://php-java-bridge.sourceforge.net/pjb/docs/php-api/java/_JavaProxy.inc.html#functionjava_closure > public static Object[] encode(Object request) throws RuntimeException, > Exception { > > -> I added static: that was logic > -> I added RuntimeException, like in the FAQ. In this case your code will work and I have no explanation for this issue either. But if your library is smart enough to call $java_input's invocation handler, please have a look at your PHP code called from the invocation handler. It probably calls a library method which throws an unchecked exception. The problem is simply that an unchecked exception has been returned from a Java call but not thrown. (You can get around this by setting JAVA_PREFER_VALUES, but I think you know that). Be it as it may, if you only want to add a sec header to your soap request, you can do this in PHP as well. Or implement it in Java and call the entire method from PHP. Regards, Jost Bökemeier |