无法解析符号'UserProfileWebService“符号、UserProfileWebService

2023-09-06 19:21:21 作者:残缺旳感觉

我发现这篇文章在MSDN上: http://msdn.microsoft.com /en-us/library/ms550407.aspx ,我想用code样品提供,但我似乎无法弄清楚如何解决 UserProfileWebService

I found this article on msdn: http://msdn.microsoft.com/en-us/library/ms550407.aspx, and I would like to use the code sample provided, but I can't seem to figure out how to resolve UserProfileWebService.

没有任何人知道我需要什么引用添加或这是某种形式的SDK的缺失?

Does anybody know what reference do I need to add or is this some sort of SDK missing?

此外,有没有任何替代 http://www.findjar.com 当它涉及到C#?

Also, is there any alternative to http://www.findjar.com when it comes to C#?

任何信息是AP preciated,谢谢!

Any info is appreciated, thank you!

注:我是在SharePoint小白一点点,所以我可能会丢失在我的脑海:(还有一些重要的数据块,我要指出,我们正在使用SharePoint 2010,VS2010,.net4.0和客户端对象模型来远程遍历。

NOTE: I am a little bit of a sharepoint noob, so I might be missing some important data blocks in my head :( Also, I should point out that we are using Sharepoint 2010, VS2010, .net4.0 and Client Object Model to traverse it remotely.

推荐答案

在用户配置文件服务的Web服务命名空间是一个任意名称的引用, UserProfileService.asmx Web服务在Microsoft Office SharePoint Server 2007中它是在 MOSSSOAP(在mosssoap.dll)组装​​。该 UserProfileWebService 类驻留在 websvcUserProfileService 命名空间。

The User Profile Service Web service namespace is an arbitrary name for a reference to the UserProfileService.asmx Web service in Microsoft Office SharePoint Server 2007. It is in the MOSSSOAP (in mosssoap.dll) assembly. The UserProfileWebService class resides in the websvcUserProfileService namespace.

您需要添加一个引用 Microsoft.SharePoint.Client 组装和 Microsoft.SharePoint.Client.Runtime 组件。

You need to add a reference to the Microsoft.SharePoint.Client assembly and Microsoft.SharePoint.Client.Runtime assembly.