The YYYY-MM-DDTHH:MM:SS format is from .NET’s
default XML serializer, which uses something like an ISO date format (.NET’s
format string “s”). When you dump it on the server side, it is probably just
using the object’s ToString() method, which seems like it chose a different
format. One question, I guess, is what schema data type the WSDL is telling
Flex to expect. Second question (to the Macromedia crew) is how Flex handles
deserialization depending on what that schema data type is…. - Rick From: Thanks for the reply, I
did try what you suggested just to be sure, but like I said before, it seems
that by the time the result event handler has fired, the data is already
bad. I just cannot see why the XML in the SOAP response is: On 6/27/05, Here's an example with an HttpService, you can
do something similar: Add: result="manageData(event)" …to your mx:HttpService tag… Define the handler something like this, where
it will look through the returned data structure and replace the StartDate
objects with a "parsed" version…in my example, my structure is a
multi-row XML document. One of the elements is named "DateTime"
and is in the same format you are trying to parse. If you only have a
single row, the handler might look slightly different. function manageData(event) {
for(var i:Number=0; i< event.result.Row.length; i++) {
var d:Date =
parseDateString(event.result.Row[i].DateTime);
event.result.Rowsets.Rowset.Row[i].DateTime = d;
} }
- Rick From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Matthew Shirey Might you have some information on where to put this
exactly? It seems like it's too late by the time the object has been
created from the result of the web service call. All it seems to contain
is "Invalid Date". When I look at the object that was created
in the Network Monitor, it does seem to have a date, but not the one I sent
it. On
6/25/05, Manish Jethani <[EMAIL PROTECTED]>
wrote: On 6/25/05,
YAHOO!
GROUPS LINKS
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com ---- LSpots keywords ?> ---- HM ADS ?> YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Flex, C# Web Services, and Dates Rick Bullotta
- Re: [flexcoders] Flex, C# Web Services, and Dates Matthew Shirey
- Re: [flexcoders] Flex, C# Web Services, and Dates Matthew Shirey
- RE: [flexcoders] Flex, C# Web Services, and Dates Rick Bullotta
- RE: [flexcoders] Flex, C# Web Services, and Dates Matt Chotin
- Re: [flexcoders] Flex, C# Web Services, and Dates Matthew Shirey
- RE: [flexcoders] Flex, C# Web Services, and Dates Matt Chotin