What error does XFire give you?
 Regards
 Dan

On 1/8/07, Alexander Anguiano <[EMAIL PROTECTED]> wrote:

I thought the web standard include the offset.  My problem is

The Csharp client generates this
<onDate>2007-01-05T01:00:00</onDate>

I believe Xfire is expecting the offset so when it deserialized my time
it is translated to this

2007-01-04 19:00:00.0

5 hours off

The funny thing is that it used to work.  I'm not sure what changed in
my enviroment to make it stop working.

-----Original Message-----
From: Karl Palsson [mailto:[EMAIL PROTECTED]
Sent: Monday, January 08, 2007 10:27 AM
To: [email protected]
Subject: RE: [xfire-user] Csharp DateTime serialization format is wrong?


Well, they're both perfectly valid and correct xsd:Datetimes.  What "web
standard" are you referring to?

http://www.w3.org/TR/xmlschema-2/#dateTime

As far as including/excluding the timezone goes, I can't really help
you.


> -----Original Message-----
> From: Alexander Anguiano [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 08, 2007 3:46 PM
> To: [email protected]
> Subject: [xfire-user] Csharp DateTime serialization format is wrong?
>
>
>
> (I used tcpmonitor to get the soap message fragment)
>
>
> DateTime t = DateTime.Parse("01/05/2007 01:00:00");
>
> serialized to this.
>
> <onDate>2007-01-05T01:00:00</onDate>
>
> It used to serialize as this
>
> <onDate>>2007-01-05T01:00:00.0000000-05:00</onDate>>
>
>
> Does anyone know why this happens and if there is a setting that i
> have to set in VS to make it serialize to the web standard?
>
> I use java 1.5.9,  xfire 1.2,  Visual C# 2005 Express Edition
>
> The wsdl generated this for the field
>
> <xsd:element maxOccurs="1" minOccurs="1" name="onDate"
> nillable="true" type="xsd:dateTime" />
>
> Thanks
> Alexander
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email




--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

Reply via email to