How can I control the name of generic WCF return types?

后端 未结 3 2078
遇见更好的自我
遇见更好的自我 2020-12-06 02:39

I\'ve got a WCF Web Service method whose prototype is:

[OperationContract]
Response> GetCustomers();

When I add

3条回答
  •  攒了一身酷
    2020-12-06 03:28

    Please try this:

    [OperationContract]
    [return: MessageParameter(Name="YOURNAME")]
    Response> GetCustomers();
    

提交回复
热议问题