Enum causes error in web service

P

Paul Buckley

Hi,

If I pass the enum (defined below) into, or out of, a web method, the client
throws an exception - "There is an error in XML document (1, 17789).". I
have used different enums (defined by me) in other places and they work
fine! Could anyone shed some light?

Thanks,

Paul.



public enum DataTypeEnum {

String = 1,

Date = 2,

Decimal = 3,

Boolean = 4,

Enum = 5,

Int = 6,

Long = 7,

Period = 8,

Time = 9,

Custom = 10,

Unknown = 99

}
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top