使用SOAP,Javascript,C#,Webservices,jQuery的Windows Gadget for Sharepoint 2007列表 [英] Windows Gadget for Sharepoint 2007 List using SOAP, Javascript, C#, Webservices, jQuery

查看:91
本文介绍了使用SOAP,Javascript,C#,Webservices,jQuery的Windows Gadget for Sharepoint 2007列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为Sharepoint 2007开发一个小工具,该小工具将对用户进行身份验证,然后从特定的URL获取一个共享点列表,

I am trying to develop a Gadget for Sharepoint 2007, which will authenticate a user and then fetch him a sharepoint list from a specific URL,

在过去的4天里,我一直在研究它,并遇到了制作它的不同方法,但是由于解决方案要么完成了一半,要么不起作用,或者太困惑以至于无法从我那里得到帮助或转化为我想要的东西.

For the last 4 days I have been working on it and came across different ways of making it, but because solutions are either half done, dont work or too confusing to get help from or convert into what I want.

因为Windows小工具使用脚本+ HTML,所以我有以下选择来继续制作该小工具,

Because Windows Gadget uses Scripting + HTML so I have following options to carry on work with to make this gadget,

  • 创建一个Visual Studio项目(dll),该项目将使用Sharepoint的SPLIST/SPWeb为我获取列表,然后可以使用JavaScript& Visual Studio"COM"读取该dll(类"),并在JavaScript中获取数据,并在HTML上显示该数据. 这种方法的问题是,我不确定,如果我使用Sharepoint SPLIST创建一个"dll"并将其放入gadget文件夹中,它将在客户端(未在其PC上安装Sharepoint的客户端)上正常工作. 在尝试找到有关此问题解决方法的帮助时,我发现该项目正在做同样的事情,但不确定是否可以对它进行更改,并且该项目是否可以与我之前提到的"dll"一起使用,这是指向的链接小工具,
  • Create a Visual studio project (dll) which will fetch the list for me using SPLIST/SPWeb of Sharepoint and then I can use JavaScript & Visual Studio "COM" to read that dll ("Classes") and get data in JavaScript + displaying it on HTML. Problem with this approach is, I am not sure, If I create a "dll" with Sharepoint SPLIST and put it into the gadget folder, will it work on Clients (that dont have sharepoint installed on there PCs). While trying to find help regarding this approach to problem I find this project that is doing kinda same thing, but not really sure if i make changes to it and it will gonna work with "dll" I was talking about earlier, here's the Link to Gadget,

使用JavaScript的Gmail小工具读取Visual Studio Dll

  • 解决问题的第二种方法是,如果我使用Sharepoint Web服务,那将使我获得所有列表项,但是在JavaScript中使用Web服务并不是那么容易,因此,如果我创建一个Visual Studio项目,请获取一个共享点Web服务的Web参考,并返回一个列表,我再次使用JavaScript从DLL中读取结果,并将其显示在HTML上.

此链接为在Dot Net项目中使用Web服务更新列表项,但是在注释中,它还告诉您如何获取列表数据,但随后又说明了如何对用户进行身份验证

  • 另一种解决方案是使用Jquery来获取共享点列表数据,就像之前的链接一样,但是同样,我该如何验证我的用户@小工具?

  • 我最喜欢的解决方案是将SOAP或REST与Web服务一起使用,我想使用SOAP来获取Sharepoint List数据并同时对我的用户进行身份验证,与此同时,我找到了数百本教程,但没有其中的一本.使用JavaScript/HTML进行身份验证或告诉它如何在小工具中工作

    • My Favorite solution is to Use SOAP or REST along with webservices, I want to use SOAP to get Sharepoint List data and authenticate my users at the same time, I find hundreds of tutorials on this, but non of them actually doing authenticating or telling how this can work in a Gadget, using JavaScript/HTML,

    我在网上发现的小工具很少有人与我需要的东西有关,它们要么不起作用,要么无法更改为我想要的东西.

    There is few Gadget I found Online that are somehow related to what I need, they either dont work, or can't be changed to what I want.

    Datapolis Sharepoint列表小工具根本无法在我的PC上运行,尽管它正是我想要的,可能的原因是,它不适用于SSL/https

    正在从网站获取新闻摘要的小工具,该小工具正在发送HTTPxml请求,但随后请求RSS提要,而我正在工作的sharepoint网站上没有Rss反馈

    为阅读本文而欢呼,希望您能够增加自己的知识或分享它:)

    Cheers for reading this I hope you either gonna increase your knowledge or gonna share it :)

    编辑 * 我的意思是使用Sharepoint MOSS"SPLIST"或"SPWEB"作为客户端对象模型,因为我使用的是Moss,所以我无法使用客户端对象模型身份验证:(.非常抱歉提供的错误信息 *

    EDIT *I meant using Sharepoint MOSS "SPLIST" or "SPWEB" as Client Object Model, AS I am using Moss I can't use Client Object Model Authentication :(. really sorry for wrong Information*

    推荐答案

    您正在将其安装在用户PC上,因此无法使用标准的SharePoint API(Microsoft.SharePoint.dll)

    You're installing this on a users PC so you can't use the standard SharePoint API (Microsoft.SharePoint.dll)

    您正在使用2007,因此不能使用客户端对象模型"(托管/silverlight或EMCA脚本)

    You're using 2007 so you can't use the "Client Object Model" (managed/silverlight or EMCA Script)

    离开

    a)SharePoint Web服务(JavaScript或仍然是JavaScript的JQuery).

    a) The SharePoint Web Services (either JavaScript or JQuery which IS still JavaScript).

    这意味着您的小工具将通过与浏览您网站的人相同的机制向SharePoint进行身份验证-通常为集成Windows身份验证.

    This means that your gadget will be authenticating to SharePoint via the same mechanism that someone browsing to your site would - normally Integrated Windows auth.

    首先开始的是出色的 http://spservices.codeplex.com/库,该库使您可以轻松地从JQuery调用Web服务).请参阅文档以获取有关使用方法的提示.

    The first place to start this is the excellent http://spservices.codeplex.com/ library which allows you to easily call the web services from JQuery). See the documentation for tips on how to use it.

    对于已完成的项目, http://sharepointsidebar.codeplex.com/

    b)通过在SharePoint服务器上部署一个dll来创建自己的自定义Web服务,然后通过JavaScript调用这些服务(也许是USign JSON或类似的

    b) Create your own custom web services by deploying a dll on the SharePoint server then call those via JavaScript (perhaps usign JSON or similar rather

    这篇关于使用SOAP,Javascript,C#,Webservices,jQuery的Windows Gadget for Sharepoint 2007列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆