episerver-6

EpiServer Web service 6.0, problems authenticating when using webservice

妖精的绣舞 提交于 2020-01-06 08:56:48
问题 I'm doing a console applications that will tell the EpiServer webservice to add a page. My problem is that I can't get the autentication to work. I've created a webservice user in Epi backofice. I can login to the webservice through the browser with my account. A code sample from the console app is as follows. var client2 = new ContentChannel.ContentChannelServiceSoapClient(); client2.ClientCredentials.UserName.UserName = "username"; client2.ClientCredentials.UserName.Password = "password";