Hello, i'm new in this list and may this question is not correct addressed here. I tried to resolve the problem by myself but neither in the net nor in the archive was a solution or hint for my problem.
The problem itself: There is the xmlrpc(2) API where its easy to implement a xmlrpc "interpreter" (You know it ;-) : <schnipp> ... XmlRpcServer xmlrpc = new XmlRpcServer (); ... xmlrpc.addHandler ("RPCCall", new SomeClassWithMethodsCalledInXmlRpc()); ... xmlrpc.execute (someInputStreamXmlRpcDataCallingMethodsInSomeClass); ... </schnipp> So there is an other open source library for Java available which is used to interprete Javascript. (surely You know it) It's name is Rhino (it's used in apache's tomcat as flowscript i think) and its available at mozilla.org. It is also realy simple to interprete some javascript (may You know too): <schnipp> ... Context cx = Context.enter(); Scriptable scope = cx.initStandardObjects(null); ... Object scriptResult = cx.evaluateString(scope, someJSCommandsAsString, "<cmd>", 1, null); ... // vvvvvvvvvvv Object fObj = scope.get("someJSFunctionInJSCommand", scope); // ^^^^^^^^^^^ ... if (fObj instanceof Function) { Object functionArgs[] = { "'SomeArgs'" }; Function f = (Function)fObj; // vvvvvvvvvvv Object result = f.call(cx, scope, scope, functionArgs); // ^^^^^^^^^^^ } ... </schnipp> in this example the function "someJSFunctionInJSCommand" in the Javascript is called from Java. Normaly both code snippets need a bit more code but i think its enough to understand how it works. So my goal should be to call (Rhino) Javascript over XmlRpc. The Problem here is that i can't call javaScriptObject.someMethod() i need to call 1th scope.get and 2nd f.call. ======= So my question is: is there some point where i can hook into the xmlrpc API to get the xmlrpc call not as method call but as call to a method with method name and arguments as (string) parameter ? ======= i've tryed to understand the source of xmlrpc but it's may to heavy for me to understand the complete code or the part i need ... Thanks a lot for every kind of help !!!!!!!!! regards Thomas Schmidt --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]