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??
精彩评论