0 Replies Latest reply on Jan 6, 2008 1:27 PM by siki^2

    WS result format Object problems

    siki^2
      Hi. I'm calling WS from flex with following SOAP response
      <S:Envelope xmlns:S=" http://schemas.xmlsoap.org/soap/envelope/">
      <S:Body>
      <ns2:listTodayAttendancesResponse xmlns:ns2="com.test">
      <return status="OK">
      <data>
      <data xsi:type="ns2:attendanceStatusVO" userName="joe" userId="1" todayWorkedTime="12600000" todayCheckin="2008-01-06T18:00:00+01:00" state="HOME" actionTimestamp="2008-01-06T22:00:00+01:00" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"/>
      <data xsi:type="ns2:attendanceStatusVO" userName="dave" userId="2" todayWorkedTime="10050890" todayCheckin="2008-01-06T20:13:00+01:00" state="AT_WORK" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"/>
      </data>
      </return>
      </ns2:listTodayAttendancesResponse>
      </S:Body>
      </S:Envelope>
      There are two problems with Flex representation of this data.
      the lastResult of the WS operation equals to "" (String). The problem seem to be in 'all the data in XML attributes' as when I return anything as an element I get the right response (resultFormat is Object)

      the actionTimestamp is optional and thus my expectation is that in case it is not sent the value in flex will be equal to null. unfortunately the date/time is today midnight (and tomorrow it will be tomorrow :)