I\'m currently working on a WCF service that reaches out to another service to submit information in a few of its operations. The proxy for the second service is generated thro
If you are using callbacks or if you want to modify the message or headers then you need to use OperationContextScope
. Your service might need to modify outgoing headers while calling that another service.
When you establish OperationContextScope
then you can:
OperationContext
object or (if the channel implements System.ServiceModel.Channels.ISession
) the associated channel's session identifier.The other service which you call, is it a session-based service? Probably you need to look at its sample client code or documentation if available.