Do you use enum types in your WCF web services?

前端 未结 9 1995
臣服心动
臣服心动 2020-11-27 06:06

I\'ve heard some people saying that enums are evil and shouldn\'t be used in web services because of the mismatches that could occur between the server and the client if som

9条回答
  •  离开以前
    2020-11-27 06:28

    Enumerations are fully supported in WSDL and XSD through the xsd:enumeration schema element. It provides support for both single values and flags-style enumerations, where multiple values in a flags enumeration are separated by spaces.

    So you should have no problem using enumerations with any standards compliant platforms.

提交回复
热议问题