Posted on Sunday 19 March 2006
With amfphp 1.2, it’s possible to test your Remoting services directly through your web browser using the service browser. Fluorine, openAMF and other Remoting users rejoice, however, as it is in fact possible to use the same service browser to test any Remoting gateway. Here’s how you can do it:
- Create an amfphp service with a methodTable mirroring the one on the remote server (including arguments and such - this can easily be done using the MethodTable class)
- in browser/config.php, change the $gatewayUrl to a hard coded value, say “http://www.mysite.com/gateway.aspx”
Amfphp will then retrieve the remote service information from the local methodTable but send the arguments to the remote server instead. This allows quick testing outside of the Flash IDE.
In other amfphp news, I’ve added a new video tutorial on understanding and preventing SQL injection. I highly recommend that you view it if you’re concerned about security in your web applications.


