22
Aug
10

Passing a value object as a parameter to amphp’s browser

Unfortunately I don’t have the answer on how to do this, and after a bit of Googling it seems like I’m not the only one.

Getting VO’s from AMFPHP back into my Flex app as strongly typed objects is fine. Sending a single VO to a method in AMFPHP has me somewhat bamboozled though, given that this makes the Browser then only want to take a single parameter as well (which makes life a bit difficult for testing purposes).

My initial idea to get around this was to modify the service browser to detect when a parameter of a service method was actually a VO object. Then instead of letting the Browser just display a single textinput field (which would require an object with the same type as the VO you want to use - something I’ve got no idea how to do by text alone in the browser), each property of the VO would instead be displayed as it’s own individual textinput field.

Has anyone else been sending VO’s to AMFPHP and still made use of the Browser in their setup? Please drop us a comment if you have.

Share and Enjoy:
  • del.icio.us
  • Digg
  • Fark
  • Google
  • NewsVine
  • Slashdot
  • StumbleUpon
  • Technorati
  • Yahoo! Buzz

5 Responses to “Passing a value object as a parameter to amphp’s browser”


  1. 1 JohnO Aug 22nd, 2010 at 3:10 pm

    Check out PlugrMan. It was just recently released as beta. It’s an Air app that replaces the AMFPHP Browser and has a lot of cool features, such as setting up VO’s for testing to your AMFPHP service.

    Sign up for beta at http://plugrman.com/

    Videos on Youtube: http://www.youtube.com/user/plugrman

  2. 2 rob Aug 22nd, 2010 at 4:37 pm

    if you want to pass a VO to the amf browser, pass it in JSON. in your textInput that’s expecting an object, just pass it like this: {”key1″:”value1″, “key2″:”value2″, “key3″:”value3″}

    it’s a little annoying but it works and you don’t need to edit your method.

  3. 3 Jason Langdon Aug 23rd, 2010 at 3:40 am

    @Rob - I’m aware of the JSON object that could be passed - some of my VO’s have got 10 or more properties though, so having to remember the names of the properties everytime I wanted to test a service call in the Browser isn’t practical.

    @JohnO - that looks awesome, thanks very much for dropping by and leaving a comment. I’m very excited about the possibilities the PlugrMan AIR app provides!

  4. 4 Omar Gonzalez Oct 23rd, 2010 at 5:22 am

    Hi Jason,

    Just dropping by to let you guys know PlugrMan has officially launched! All your strong-type debugging needs are now available to the public via PlugrMan, give the 30 day trial a go!

    -Omar

  1. 1 Twitter Trackbacks for Passing a value object as a parameter to amphp’s browser at calm in the chaos [wrench.com.au] on Topsy.com Pingback on Aug 22nd, 2010 at 2:47 pm

Leave a Reply




Categories

Recent Comments

Posts this month

August 2010
M T W T F S S
« Jun   Oct »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Archives