使用.net在UCM中调用webservices

时间:2016-01-28 08:23:16

标签: c# asp.net web-services

我是UCM的新手我尝试使用.net调用UCM中的webservices我收到此错误消息

远程服务器返回错误:(401)未经授权。

来源错误:            return base.Channel.QuickSearch(request);

        IdcProperty extra = new IdcProperty();
        extra.name = "dID";
        extra.value = "210";
        IdcProperty[] array = { extra };
        IdcPropertyCollection _IdcPC = new IdcPropertyCollection();


        QuickSearchRequest search = new QuickSearchRequest(searchWord, _IdcPC);
        QuickSearchResult result = new QuickSearchResult();

        ((ClientBase<ISearchSoap>)(client)).ClientCredentials.Windows.ClientCredential = new NetworkCredential("?", "?"); 

        result = client.QuickSearch(searchWord, _IdcPC);

0 个答案:

没有答案