6 Replies Latest reply on Jul 31, 2007 1:22 AM by _name

    Tree View of web service variables

    mikaye
      Is there a quick way to iterate through a webservice method's arguments to display in a tree view, e.g. convert to XML. The webservice arguments look like this,

      findMeetingList mx.rpc.soap.mxml.Operation (@224b3e51)
      arguments Object (@1cb50801)
      filter Object (@1cb507e1)
      endTime Date (@1cab4e71)
      date 30 [0x1e]
      dateUTC 31 [0x1f]
      day 1
      dayUTC 2
      fullYear 2007 [0x7d7]
      fullYearUTC 2007 [0x7d7]
      hours 23 [0x17]
      hoursUTC 6
      milliseconds 0
      millisecondsUTC 0
      minutes 59 [0x3b]
      minutesUTC 59 [0x3b]
      month 6
      monthUTC 6
      seconds 0
      secondsUTC 0
      time 1185865140000 [0x1141b120720]
      timezoneOffset 420 [0x1a4]
      startTime Date (@1cab4e49)
      date 30 [0x1e]
      dateUTC 30 [0x1e]
      day 1
      dayUTC 1
      fullYear 2007 [0x7d7]
      fullYearUTC 2007 [0x7d7]
      hours 0
      hoursUTC 7
      milliseconds 0
      millisecondsUTC 0
      minutes 0
      minutesUTC 0
      month 6
      monthUTC 6
      seconds 0
      secondsUTC 0
      time 1185778800000 [0x11415ec9580]
      timezoneOffset 420 [0x1a4]
      subject null
      subjectSearchMatchType "CONTAINS"
      userId ""
      userSearchMatchType "CONTAINS"
      userId "admin"

      where startDate and endDate are fine as simple text.
        • 1. Re: Tree View of web service variables
          mikaye Level 1
          A better view of the hierarchy is,
          findMeetingList mx.rpc.soap.mxml.Operation (@224b3e51)
          [tab]arguments Object (@1cb50801)
          [tab][tab]filter Object (@1cb507e1)
          [tab][tab][tab]endTime Date (@1cab4e71)
          [tab][tab][tab]startTime Date (@1cab4e49)
          [tab][tab][tab]subject null
          [tab][tab][tab]subjectSearchMatchType "CONTAINS" [tab][tab][tab]userId ""
          [tab][tab][tab]userSearchMatchType "CONTAINS"
          [tab][tab]userId "admin"
          • 2. Re: Tree View of web service variables
            _name Level 1
            - pass the arguments into an array and sort them.
            • 3. Re: Tree View of web service variables
              mikaye Level 1
              Assume I don't know what the variables are. They change from webservice operation to webservice operation. All I know is that the top level is called "arguments." The hierarchy below that must be discovered.
              • 4. Re: Tree View of web service variables
                _name Level 1
                you will need to write a php server-side script that collects the webservice arguments and then passes them into flash on the client-side. once the arg's are passed into flash, flash must collect them and push them into an array. once stored in an array, the arg's can be manipulated to display in what ever arrangement you desire.
                • 5. Re: Tree View of web service variables
                  Greg Dove Level 4
                  Its best not to put them into an array if you want to display in a tree.

                  You want an xml dataprovider - at least that's what you need in flash, I'm assuming its the same in flex - it would be easy enough I'd imagine to translate what you have to an xml format. Once that's done, I don't know about the flex tree component but for the v2 flash one its relatively easy to represent hierarchical data and change the icons etc. I wish I could say the same for the as3 flash tree component. But it doesn't exist yet.

                  • 6. Re: Tree View of web service variables
                    _name Level 1
                    i apologize. although i noticed your post stated that you wanted a tree view, when i saw the data that you had i thought that you wanted it to be displayed in a simple vertical fashion within your swf. it didn't dawn on me that you were actually wanting the web-service arg's to be placed into a node tree. thanks gwd for scoping that out.