On 8-Sep-08, at 1:55 PM, dnk wrote:

> has anyone had any luck passing objects to the amfphp browser for
> testing classes? I read a few articles that you need to use valid JSON
> for passing in....
>
> So I am typing in something like:
>
> {id: 3, category: 'a cat'}
>
> Has anyone been able to do this? The above does not work. I am juts
> testing my php classes via the browser before i start to write the
> flex portion.....
>
> dnk
>


I made a little progress by simply submitting it like:

{"id": 3, "category": "a cat"}

So now i can submit it as an object. According to service capture...  
it is submitting an object..... but now upon return, i am getting:

(Object)#0
   message = "faultCode:AMFPHP_RUNTIME_ERROR faultString:'AMFPHP  
Remoting 'elib' class database UPDATE query error: 1054' faultDetail:'/ 
home/sites/ws.dom.com/web/amfphp/services/Elib.php on line 236'"
   name = "Error"
   rootCause = (null)

So it seems like amfphp is choking on the double quotes, but does not  
like the single quotes (invalid JSON?).

Ideas?

d


Reply via email to