I am facing a strange behavior with very basic web development. This question can be dumb, but I think someone will be able to explain this observation.
I am developing a web service with a web method, MyWebMethod
MyWebMethod (MyEnum Param, .....)
Where,
public enum MyEnum: int {Type_1 = 1; Type_2 = 2; Type_3 = 3; }
I am now using my customer to communicate with this service, but for every request type, type_1, type_2 etc. this service captures as Type_1 . As an example, if I create a breakpoint on MyWebMethod in my web service, then I see Type_1 as the param1 type, I think it is a problem with Namespacing. I can not see any other flaws on the code. Any Idea Based on Experiences?
When anum is serialized, only the expression of the wire is transferred through the wire (name ), Not values I believe the reason is getting you the wrong value.
Check this 2 text for more information
Comments
Post a Comment