authentication - How can my UWP app authenticate with a WCF service? -


i'm writing uwp app in c#, , i'm trying have consume data (pre-existing) wcf service. can't find information online on subject. here code looks (wcf service serv, service namespace ns):

var config = ns.servclient.endpointconfiguration.basichttpbinding_iserv; var client = new ns.servclient(config); var result = client.testcall(); 

i following exception, don't understand how parse:

exception thrown: 'system.servicemodel.security.messagesecurityexception' in mscorlib.ni.dll

additional information: http request unauthorized client authentication scheme 'negotiate'. authentication header received server 'negotiate, ntlm'.

what error message mean? , how authenticate wcf service?

bonus question: servicereferences.designer.clientconfig file? how use it?

i opened package.appxmanifest file , added enterprise authentication , private networks (client & server) capabilities. fixed issue.