You are trying to use the client-side proxy object as an argument to a
call. This I am not sure is currently supported.
There is potential that this sort of thing to be implemented - I think
there was some discussion some time back about using the callable
proxies interchangeably as opaque references although I'm not sure if
support for it is complete. William?
What is probably happening is the BeanSerializer is treating the
serialized client proxy as any other object for which the server then
tries to map the fields to the Bar class (but it will only have the
fields of the client-side proxy object that was sent which has no 'baz'
field - thus it not being set).
You are trying to use the client-side proxy object as an argument to a
call. This I am not sure is currently supported.
Hi,
First option seem doesn't seem to work, as it gives exception message:
uncaught exception: JSONRpcClientException: arg 1 could not unmarshall
Second one also gives an exception message which is probably due to a version issue (I am using jabsorb 1.2.2)
jsonrpc.createObject is not a function
However, even if I could use the second option, it wouldn't precisely solve my problem. My intention is to get an object from Java side, modifying it from jsonrpc and sending it to Java again. In second option, I need to specify the details of the object in client side. I guess I can relate it with Java part somehow, but it would be messy.
Thus, if someone could come up with a feature like I mentioned, it would be nice !
PS: I have spent hours for this and it is disappointing being not able to do it. In the documentation, as far as I have read, I haven't been able to recognize any parts regarding to this issue, which is in my opinion quite fundamental. In the documentation, it is explicitly written that we are able to execute java methods with string a parameter. As a newbie, I tend to understand that a java method can be executed by any parameter type. If you could add a part regarding to this, it would save a lot of time.
PS2: Umm, this one is another issue I guess, but I would like to know if we are able to execute a method with more than one string parameters just like that;
jsonrpc.fooObj.foo("test","test2")
Are we able to execute a method with more than one parameters ? In the documentation as far as I read, I doubt there is a sample about multiple parameters.