Enum returns wrong default values in a web service

G

Guest

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top