help me in understanding differences between these two. as per to me, Operation
ContextScope can be used irrespective of .NET applicaiton you are using like WCF, Console, Web etc anywhere this can be used if you are calling any other service like WCF or Java based service [ I this will not work in case of ASMX service] to add headers into
outgoing message.
If so then why we need MessageInspectors at any client side to add headers? OperationContextScope is much simpler than MessageInspectors. anybody shed some light to understand the correct usage of these two?
Thanks Mukesh..this helped & reminded in fact to understand why do we need both. but, OperatiuonContextScope is strictly WCF clients only or any other clients can use as long as proxy generated using svcutil?
Member
671 Points
464 Posts
OperationContextScope vs MessageInpectors
Sep 27, 2015 09:04 PM|ramana123|LINK
help me in understanding differences between these two. as per to me, Operation
ContextScope can be used irrespective of .NET applicaiton you are using like WCF, Console, Web etc anywhere this can be used if you are calling any other service like WCF or Java based service [ I this will not work in case of ASMX service] to add headers into outgoing message.
If so then why we need MessageInspectors at any client side to add headers? OperationContextScope is much simpler than MessageInspectors. anybody shed some light to understand the correct usage of these two?
/Ram/
Contributor
4390 Points
871 Posts
Re: OperationContextScope vs MessageInpectors
Sep 28, 2015 01:20 AM|Mukesh_Kumar|LINK
Hi,
Please refer this article to know in detail about OperationContextScope and MessageInpectors use with code.
http://robbincremers.me/2011/12/29/wcf-message-headers-with-operationcontext-and-with-messageinspector-and-custom-service-behavior/
Hope this will help you.
thanks
Member
671 Points
464 Posts
Re: OperationContextScope vs MessageInpectors
Sep 28, 2015 01:34 AM|ramana123|LINK
Thanks Mukesh..this helped & reminded in fact to understand why do we need both. but, OperatiuonContextScope is strictly WCF clients only or any other clients can use as long as proxy generated using svcutil?
/Ram/