A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: handling Array returned from Web Service

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    4

    handling Array returned from Web Service

    Okay, so I followed this handy tutorial and everything works great. I'm using a Text Field component to pass the parameter (in this case a 'word') and a Text Area component is bound to the result (the 'definition'). All is good....

    This works because the result is a String (which displays correctly when returned to the Text Area obviously). Now, I want to receive an Array as the result instead of a simple String. No surprise, the Array isn't displayed correctly in the Text Area..... it simply says "[object Object]". Can't do much with that....How can I receive this web service "result" in useful form? Can I use AS2 to set the value of an Array variable as the result from the web service (once it's finished)? If so, what's the syntax? FYI: I already know how to tell when the web service is done, just need the syntax for binding an Array variable to the result of the web service.

    Note: The Dictionary web service from the tutorial (http://services.aonaware.com/DictSer...vice.asmx?WSDL) does have a method, Define(), that returns an Array as a result..... so use that if you'd like to help me out.

    Thanks in advance for any help. Greatly appreciate it, you guys are always so awesome.

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    link is no good.

    can you define/post how you are getting this data (array?)

    Im not really following or understanding what the problem is?

    post
    1.) the stirng you get returned that DOES work

    &

    2.) the 'array' you get returned that DOES NOT work

  3. #3
    Junior Member
    Join Date
    Nov 2010
    Posts
    4
    Hmm, the link works for me... Well I ended up resolving the issue using a DataSet component. You can see details here: http://www.actionscript.org/forums/s....php3?t=258182

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    I wasnt talking about the first link..

    so your saying the second link is valid?

    even though roll over it..and it clearly has a NOT FULL URL its linking to?


    anyways.

    glad you got it fixed.

    [thread resolved]

  5. #5
    Junior Member
    Join Date
    Nov 2010
    Posts
    4
    Quote Originally Posted by whispers View Post
    I wasnt talking about the first link..
    so your saying the second link is valid?

    even though roll over it..and it clearly has a NOT FULL URL its linking to?
    [thread resolved]
    Well it's not a link you visit in a browser. It's the URL to the WSDL file of the Dictionary Web Service, which you connect to through your WebServiceConnector component in Flash.

    HOWEVER, this form DID mess up the long URL by auto-formatting it with a "...". You can see the full URL via my first link, on the next page (3).
    Last edited by dplows51; 04-12-2011 at 03:15 PM.

  6. #6
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    you should still be able to click the link and see the XML provided for use.

    the link works at ActionScripts.org still

    http://services.aonaware.com/DictSer...vice.asmx?WSDL

    even when converted/made smaller by the forum..when you hover over it..it still points to valid URL

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center