Enum returns wrong default values in a web service

Discussion in 'ASP .Net' started by =?Utf-8?B?QVNQIERldmVsb3Blcg==?=, Aug 23, 2006.

  1. I have a web service that returns a class when a web method is called. This
    class has a enum property with four values. These four values have default
    numbers. For example,

    Apple = 5
    Orange = 8
    Berry = 10
    Grape = 12

    When I hit the web method with the test harness it will return the enum with
    the correct default numbers. When I hit the web service through a web
    application it not longer returns the default values. This results in me
    getting back the wrong enum defualt value. Am I wrong to assume that a web
    service will return an enum with the correct default values? Any help would
    be greatly appreciated.
    =?Utf-8?B?QVNQIERldmVsb3Blcg==?=, Aug 23, 2006
    #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. dumboo

    default values to enum ?

    dumboo, Feb 22, 2004, in forum: C++
    Replies:
    9
    Views:
    11,481
    Sharad Kala
    Feb 23, 2004
  2. Travis

    default Enum values?

    Travis, May 8, 2008, in forum: C++
    Replies:
    7
    Views:
    379
    Greg Herlihy
    May 10, 2008
  3. Andy B.
    Replies:
    2
    Views:
    1,213
    Alexey Smirnov
    Jun 8, 2009
  4. Christophe Peillet

    CreateChildControls() always returns default property values

    Christophe Peillet, Jan 14, 2006, in forum: ASP .Net Web Controls
    Replies:
    7
    Views:
    319
    Steven Cheng[MSFT]
    Jan 19, 2006
  5. con
    Replies:
    2
    Views:
    154
Loading...

Share This Page