Hi Stefan,

thanks for taking time to test the trunk.


Stefan Volbers wrote:
> 
> 
> ...which reminded me of my promise some month ago that I would test the 
> PHP4 backend and report my experiences...
> 
> So hi there, I just got trunk and packed it onto my PHP4 test server 
> (W2K with PHP4.4.8), this is what came out (used FF3.5.4 with firebug):
> 
> 1. The first rpc threw:
> {  error:  {    "origin":1,    "code":-1,    "message":"Fatal PHP Error: 
>    Call to undefined function: json_decode() in 
> C:\\Inetpub\\wwwroot\\rpctestproj\\rpc\\services\\server\\lib\\JsonWrapper.php
>  
> on line 63 "}}
> 
> I was able to fix this by changing line 19 in JsonWrapper.php to
>    function JsonWrapper()
> so that the method becomes a PHP4 constructor, thus $this->_json gets 
> created.
> 

Thanks, this was indeed a bug, fixed in rev. 19458


Stefan Volbers wrote:
> 
> 
> 2. After the json issue got fixed, next issue was:
> {"error":{"origin":2,"code":2,"message":"Service `rpctestproj.testclass` 
> not found."},"id":1}
> 
> This got me stuck; needless to say, the service is there (testclass.php 
> in rpctestproj directory, within the rpc/services dir); I left the 
> directory structure untouched for this test, so I wonder if I forgot 
> some step? Is there some additional configuration necessary for the new 
> server?
> 

In the trunk version, the service classes go into the "class" directory, so
that they are cleanly separated from the services. You can also specify a
different location with the "servicePathPrefix" constant in the
global_settings.php file. So if your namespace is on the services folder,
setting it to "" should do the trick (untested).

/*
 * if the service classes are not in the class/ folder,
 * customize the service path prefix here (trailing slash required)
 */
define( "servicePathPrefix", "/your/custom/location/" );

-- 
View this message in context: 
http://n2.nabble.com/JSON-RPC-service-introspection-tp3917779p3920433.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to