예제 #1
0
        static void Main(string[] args)
        {
            var client = new ServiceReference1.Service1Client(
                Service1Client.EndpointConfiguration.NetTcpEndpoint,
                new EndpointAddress(new Uri("net.tcp://tpainvwaxpxy02.corp.temp.lcl/Service1.svc/netTcpTest"),
                                    new UpnEndpointIdentity("*****@*****.**")));
            var result = client.GetDataAsync(1).Result;

            Console.WriteLine(result);
        }