【问题标题】:WebOperationContext behavior for non REST WCF Services?非 REST WCF 服务的 WebOperationContext 行为?
【发布时间】:2010-05-25 07:05:30
【问题描述】:

如果我使用 WebOperationContext,当端点不是 REST 时,我的服务方法会发生什么?

理由:我有一项服务,我将其公开为 REST 和 SOAP。

【问题讨论】:

    标签: c# .net wcf rest soap


    【解决方案1】:

    不,您不能这样做 - WebOperationContext 与 REST 内容密切相关。

    如果您想检查内容,可以在 SOAP 服务方法中使用常规的 OperationContext。那里有你需要的信息吗??

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-10-11
      • 1970-01-01
      • 1970-01-01
      • 2011-08-23
      • 2019-08-15
      • 2010-11-26
      相关资源
      最近更新 更多