DataSet with default value for DateTime

Discussion in 'ASP .Net Web Services' started by Andres Aguiar, Aug 12, 2003.

  1. If I have a web service that returns a DataSet, and the XSD for the dataset
    includes a default property for a datetime field, i.e.:

    <xs:element default="1753-01-01T00:00:00" name="InvoiceDate"
    type="xs:dateTime" />

    When I add a web reference in VS.NET 2003, I get an error message:

    Custom tool error: Failed to generate code. Invalid Primitive Type:
    System.DateTime. Only CLS compliant primitive types can be used. Consider
    using CodeObjectCreateExpression.

    Any ideas?

    Thanks
     
    Andres Aguiar, Aug 12, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Darren Clark

    Setting default value for dataset?

    Darren Clark, Jun 29, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    2,652
    Darren Clark
    Jun 29, 2004
  2. Christos TZOTZIOY Georgiou
    Replies:
    3
    Views:
    1,031
    Christos TZOTZIOY Georgiou
    Sep 13, 2003
  3. Sorisio, Chris
    Replies:
    1
    Views:
    610
    Steve Holden
    Apr 25, 2004
  4. mp
    Replies:
    1
    Views:
    667
    John Machin
    Jul 28, 2006
  5. Homer J. Simpson
    Replies:
    0
    Views:
    2,025
    Homer J. Simpson
    Sep 4, 2007
  6. Martin
    Replies:
    0
    Views:
    629
    Martin
    Dec 27, 2008
  7. Replies:
    2
    Views:
    1,052
    M.-A. Lemburg
    Jan 6, 2009
  8. NiklasRTZ

    datetime.datetime. or datetime. ?

    NiklasRTZ, Oct 8, 2009, in forum: Python
    Replies:
    10
    Views:
    746
    niklasr
    Oct 11, 2009
Loading...