OperationContext.Current.OutgoingMessageProperties in BizTalk

655 views Asked by At

Have to add OperationContext.Current.OutgoingMessageProperties to outgoing BizTalk message How to implement below code in BizTalk?

ConcurrentPrograms_ARClient client1 = new ConcurrentPrograms_ARClient(binding, address); 

using (new OperationContextScope(client1.InnerChannel))
{ 
    OperationContext.Current.OutgoingMessageProperties.Add("Property Name", "Property Value"); 
    client1.OPERATION(params...);
}
1

There are 1 answers

3
zurebe-pieter On

You might want to take a look at WCF message inspectors. You can implement one in a separate project and configure it as a behavior in your send port where you would then have full control over both the request and the reply message.