Я пытаюсь извлечь файл из библиотеки документов SharePoint перед загрузкой в мое клиентское приложение для редактирования.
//documentPath = https://192.168.1.10/Utility/Phys/Document%20Library/document.xml
//listWebServiceURL = https://192.168.1.10/Utility/Phys/Document%20Library/_vti_bin/lists.asmx
private void CheckOutFile(string documentPath)
{
string listWebServiceUrl = this.GetListServiceURL(documentPath);
bool checkedOut;
using (Lists listWebService = new Lists())
{
listWebService.Credentials = CredentialCache.DefaultCredentials;
listWebService.Url = listWebServiceUrl;
checkedOut = listWebService.CheckOutFile(documentPath, "true", string.Empty);
}
}
Когда checkedOut = listWebService.CheckOutFile (documentPath, "true", string.Empty); работает строка, я получаю SOAPServerException.
((System.Xml.XmlElement) ((System.Web.Services.Protocols.SoapException) (ех)). Деталь) .InnerText
Ссылка на объект не установлена для экземпляра объекта.
Любая помощь по этому вопросу будет принята с благодарностью.
Спасибо,
Keith
EDIT:
Я проверил приведенный выше код с библиотекой SharePoint, которая не использует SSL и, кажется, работает нормально.