I found the solutions. Thanks now. it is working fine now.
EndpointAddress address = new EndpointAddress(new Uri("net.tcp://SC-Server-A
PP01:50010
/Common/De
finition")
, EndpointIdentity.CreateUpn
Identity("
[email protected]ev"));
NetTcpBinding netTcpBinding = new NetTcpBinding();
netTcpBinding.MaxReceivedM
essageSize
= int.MaxValue;
netTcpBinding.TransactionF
low = true;
netTcpBinding.TransactionP
rotocol = TransactionProtocol.OleTra
nsactions;
netTcpBinding.ReaderQuotas
.MaxDepth = int.MaxValue;
netTcpBinding.ReaderQuotas
.MaxString
ContentLen
gth = int.MaxValue;
netTcpBinding.ReaderQuotas
.MaxArrayL
ength = int.MaxValue;
ChannelFactory<IDefinition> factory = new ChannelFactory<IDefinition>(
netTcpBind
ing, address);
factory.Endpoint.Behaviors
.Add(new AttachExtendedHeadersBehav
ior()
{
Domain = "range",
Culture = "",
User = ""
});
IDefinition IDefinition1 = factory.CreateChannel();
var defs = IDefinition1.GetAllDefinit
ions("some
user");