c# web servis istemcisinde basic authentication

Java ile yazdığım web servisleri test etmek amacıyla Visual Studio 2008 ile (framework 3.5) istemci uygulaması yazayım dedim. Bizim web servis tarafında basic authentication olduğu için istemciye de bunları belirtmek gerekiyordu. Bir daha o site senin bu site benim diye gezmemek için buraya not alayım dedim:

com.haqen.HedeService service = new com.haqen.HedeService();
service.Credentials = new NetworkCredential("username", "password");
Console.WriteLine( service.getServiceName() );

Post a Comment

Your email is never published nor shared. Required fields are marked *