Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Enum causes error in web service

Thread Tools

Enum causes error in web service

Paul Buckley
Posts: n/a

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?



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


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ENUM server for private ENUM kael UK VOIP 2 02-25-2007 11:54 AM
enum: display elements of an enum specified at runtime Jerminia Java 3 10-07-2005 10:08 PM
enum within an enum - Java 6 06-13-2005 12:51 AM
Including an enum within another enum, possible? mrhicks C Programming 2 06-10-2004 03:00 AM
How to enum an enum? Ernst Murnleitner C++ 5 11-13-2003 11:06 AM