Proxies can be created in one of two ways:
A ChannelFactory provides a flexible way to create proxies at runtime, by creating a factory from the address, binding details, and contract details, and then calling CreateChannel on the factory.
Creating a Client by Using a Channel Factory:
To send messages you must open the channel. and after finishing you have to Close the channel.
The ChannelFactory class has a number of methods and properties that enable you to access features of the underlying channel. e.g the Credentials property:
|For More Info Please Visit: WCF Resources Page|