4 Replies Latest reply on Aug 31, 2007 3:36 PM by drjfreeze

    Need help with XML request data

    drjfreeze
      Hello

      I am using HTTPService to make a POST call and am sending the data

      <mx:request xmlns="">
      <level1>{stringVariable}</level1>
      <level1of2><level2of2>contents</level2of2></level1of2>
      </mx:request>

      The data returning to the server is correct for 'level1' as long as 'stringVariable' is public.
      However, for the next case, which is more than one level deep, 'level1of2' gets the value of:

      level1of2 = '[object Object']

      I don't understand why this is not working. Most of the example I have been following always have request data that is two level deep. For example:

      <user>
      <name>{inputName.text}</name>
      </user>

      But, instead of getting user => name => <namehere>, I get user = [object Object.].

      Can someone explain what is going on here?

      Thanks