Message or a type that has MessageContractAttribute and other parameters of different types

后端 未结 5 1095
-上瘾入骨i
-上瘾入骨i 2021-02-07 16:13

I\'m developing WCF services where some classes have the [MessageContract] attribute, and some don\'t.

When I try to run the services I get this error mess

5条回答
  •  逝去的感伤
    2021-02-07 17:01

    This basically means that a particular operation is using a combination of message contract types and primitive types in any of the following combinations:

    MixType1: Contract type and primitive types as operation parameters
    MixType2: Contract type as a parameter and primitive type as return type
    MixType3: Primitive type as a parameter and Contract type as return type
    

    Any of the scenarios listed above would generate the error.

提交回复
热议问题