On Dec 4, 2007 5:55 AM, A.J. Venter <[EMAIL PROTECTED]> wrote:
> Hi guys,
> I'm busy writing a SOAP client, and I'm a little stuck formatting a
> datetime to be SOAP compatible. What SHOULD a SOAP datetime string
> look like ? Is there a function to produce one from a TDateTime ? I
> tried to write a simple FormateDateTime function to do it, but I must
> have a detail wrong because I keep getting http-400 (bad request)
> errors.
>
> Here is a sample generated by my current code:
> <FromDateTime>2007-12-03T15:10:45.000Z</FromDateTime>
> Does anybody know how it should be changed ?
>
> A.J.

What is the SOAP/WebService server?
.Net expects a string like this: 2007-12-05T21:46:32.1368750-03:00
You can omit the timezone (-03:00) only or the timezone plus the tenth
of microseconds info, but IIRC any other subtle change breaks it.

-Flávio

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to