Chris Ashley wrote:
I have an XML web service which accepts a few datetime values.
What kind of datatime, the .NET Framework DateTime structure
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDateTimeClassTopic.asp>
We have
some clients using it who are using different systems (java etc) and
they need to know what the standard format for a datetime node should
be? Have tried DD/MM/YY but no luck. Anybody know?
According to
<http://samples.gotdotnet.com/quickstart/aspplus/default.aspx?url=%2fquickstart%2faspplus%2fdoc%2fw ebservicetypes.aspx/>
the .NET framework DateTime ends up as an XML schema dateTime or date or
time.
The XML schema data types are defined here:
<http://www.w3.org/TR/xmlschema-2/#dateTime>
<http://www.w3.org/TR/xmlschema-2/#time>
Example XSD dateTime representation is e.g.
2006-01-27T15:49:00+01:00
that is
yyyy-mm-ddThh:mm:ss
and the part after that the time zone difference to UTC.
Simply look into the WSDL description of that .NET framework which
schema type is being used. And nowadays anyone using Java to consume a
web service certainly has tools that read the WSDL description and
generate the proper classes taking care of the SOAP serialization.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/