Сообщение от
marbatov
CRM работает под Network Services. Проблема в том, что у него нет прав на доступ к шарапойнт напрямую. Для этого я создал свой собственный WSDL, который под заданным пользователем выполняет аплоад документа.
При подключении вебсервиса к консольному приложению, все прекрасно работает.
X++:
static void Main(string[] args)
{
SharepointConnector.FilesSoapClient connector = new SharepointConnector.FilesSoapClient();
connector.ClientCredentials.UserName.UserName = "domen\user";
connector.ClientCredentials.UserName.Password = "****";
Console.ReadKey();
}
при подключении кода к плагину валится на строке
X++:
SharepointConnector.FilesSoapClient connector = new SharepointConnector.FilesSoapClient();
с ошибкой
Could not find default endpoint element that references contract 'SharepointConnector.FilesSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.