Hi
I don't really use the VS2005 generated proxy classes - I like to know the exact interface at both ends.
For example for an interface IEcho:
[ServiceContract]
public interface IEchoService
{
[OperationContract]
string Echo(string message);
}
I create a client to go with it (of cause this only works if it is .NET in both ends).
public class EchoClient : ClientBase<IEchoService>, IEchoService
{
public EchoClient()
{
}
public string Echo(string message)
{
return this.Channel.Echo(message);
}
}
In this way I do not have to worry about the generated proxies...
The client is configured in the App.config:
<system.serviceModel>
<client>
<endpoint address="net.tcp://localhost:9000/EchoService"
binding="netTcpBinding"
contract="Something.Interface.IEchoService" />
</client>
</system.serviceModel>
Regards Lau