开发者

WebOperationContext behavior for non REST WCF Services?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜