using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace UserPassClient
{
    class Program
    {
        static void Main(string[] args)
        {
            //var endPoint = new EndpointAddress(new Uri("http://localhost:14209/DummyService.svc"), EndpointIdentity.CreateUpnIdentity("localhost"));
            //var binding = new WSHttpBinding();
            //binding.Security.Mode = SecurityMode.Message;
            //binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;

            DummyService.DummyServiceClient client = new DummyService.DummyServiceClient(); //binding,endPoint);
            client.ClientCredentials.UserName.UserName = "pawel";
            client.ClientCredentials.UserName.Password = "tajne";
            Console.WriteLine(client.GetData(10));
            client.Close();

        }
    }
}
