O
Oldman
I have an enum being passed into one of my webservice methods.
The actual enum is defined as follows:
[pre]
public enum StatusType
{
SPECIAL_1 = -2,
SPECIAL_2 = -1,
ENUM1 = 1,
ENUM2,
ENUM3,
ENUM4
}
[/pre]
The issue is that this is created in the proxy class like this:
[pre]
public enum StatusType
{
SPECIAL_1,
SPECIAL_2,
ENUM1,
ENUM2,
ENUM3,
ENUM4
}
[/pre]
So when the client passes up ENUM4 the web service thinks it has ENUM2.
Is there are way to fix this?
Thanks,
Chris
The actual enum is defined as follows:
[pre]
public enum StatusType
{
SPECIAL_1 = -2,
SPECIAL_2 = -1,
ENUM1 = 1,
ENUM2,
ENUM3,
ENUM4
}
[/pre]
The issue is that this is created in the proxy class like this:
[pre]
public enum StatusType
{
SPECIAL_1,
SPECIAL_2,
ENUM1,
ENUM2,
ENUM3,
ENUM4
}
[/pre]
So when the client passes up ENUM4 the web service thinks it has ENUM2.
Is there are way to fix this?
Thanks,
Chris