开发者

WebOperationContext behavior for non REST WCF Services?

开发者 https://www.devze.com 2023-01-01 02:49 出处:网络
What happens in my service method if I use a WebOperationContext, when the endpoint 开发者_开发知识库is not REST?

What happens in my service method if I use a WebOperationContext, when the endpoint 开发者_开发知识库is not REST?

Justification: I have a service that I'm exposing as both REST and SOAP.


No, you cannot do this - the WebOperationContext is intimately bound to the REST stuff.

You can use the regular OperationContext in your SOAP service method, if you want to inspect stuff. Does that have the necessary information for you??

0

精彩评论

暂无评论...
验证码 换一张
取 消