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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, you cannot do this – the
WebOperationContextis intimately bound to the REST stuff.You can use the regular
OperationContextin your SOAP service method, if you want to inspect stuff. Does that have the necessary information for you??