![]() |
1
1
我认为您误解了消息契约的原因以及如何使用它。查看上的msdn文档 Using Message Contracts for a more thorough discussion. 消息协定允许您使用头和正文元素定义消息的布局。这些可以是像string或int这样的原子类型,如果不是,则需要将复合类型定义为类。
Those composite parts (classes) that you use in that message contract ought to be marked as
Furthermore, your message contract and data contracts should never contain any functions and anything that needs to execute. The data structures will be serialized as data only, any behavior will be lost in the transfer. So in your case, you should try:
|
![]() |
Ehsan Akbar · 当请求被激发时,WCF请求时间会增加 6 年前 |
![]() |
Gans · 具有多操作合约的WCF Rest服务 6 年前 |
![]() |
Moelgaard · NLog中的IIS应用程序名称。配置 6 年前 |
![]() |
Kerwen · WCF服务调用异步函数 6 年前 |