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. Advertising

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. Christos TZOTZIOY Georgiou
    Replies:
    3
    Views:
    704
    Christos TZOTZIOY Georgiou
    Sep 13, 2003
  2. Tim Peters
    Replies:
    0
    Views:
    532
    Tim Peters
    Sep 9, 2003
  3. mp
    Replies:
    1
    Views:
    386
    John Machin
    Jul 28, 2006
  4. Martin
    Replies:
    0
    Views:
    333
    Martin
    Dec 27, 2008
  5. Replies:
    2
    Views:
    754
    M.-A. Lemburg
    Jan 6, 2009
Loading...

Share This Page