从 Flex 更新 Sharepoint 列表
我一直在尝试找到一种以优雅的方式将 Flex 连接到共享点的方法,使我能够在客户端使用 FLEX 更新列表、构建图表和创建小部件。我对此进行了广泛的研究,但我陷入了困境。
我了解 Flex 数据连接/网络服务/等的基础知识...,我似乎无法理解如何使用共享点列表服务。
有人有关于我想要实现的目标的详细示例吗?简单的例子也有效! :)
非常感谢大家!
-E。
I have been trying to find a way to connect Flex to sharepoint in an elegant way that allows me to update lists, build charts, and create widgets with FLEX on the client-side. I have researched this extensively but I am running into circles.
I understand the basics of Flex data connection/webservices/etc... , I just can't seem to get my head around how to use the sharepoint list services.
Does anybody out there have a nice detailed example of what I'm trying to achieve? Simple examples work too! :)
Thanks so much Everyone!
-E.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看“SOAP 查询示例”或来自 SharePoint Web 服务的 WSDL(例如
.../_vti_bin/lists.asmx?op=GetListItems
或../_vti_bin/lists. asmx?op=GetListItems&WSDL
),然后查看相应的 MSDN 文档(如 GetListItems) 了解如何“使用”网络服务。需要一点熟悉才能“知道”将... 映射(大多数工作都是这样),但是。 .. MSDN 文档(如果仔细提示的话)说明了要在 XML 中放入“什么”,而 WSDL 只给出了几乎无用的大纲。在针对各种任务的 SP 的手动 SOAP 访问的管道(以及相关的 SO 问题)中有许多示例。
viewFields
与Microsoft 还有一些开放规范 - - 我总是很难找到链接。 SharePoint 分支下有很多东西。 YMMV,它主要是白皮书,但却是一个很好的资源。
不确定 Flex 有哪些工具,但由于 WSDL 支持有限,大多数映射必须手动编码或来自更好的定义源 - 希望“现有库”可以直接使用或修改以适合。
我强烈建议使用一个工具来测试服务访问——例如soapUI,它实际上有一个可怕的用户界面——因为即使是最小的错误也会带着神秘的错误消息返回。另外,请确保使用 SOAP 1.2。
快乐(小于最大痛苦)编码。
PS 关于特定网络服务的更具体的问题可能会产生更好的答复。
Look at the "SOAP query example" or the WSDL from the SharePoint web-service (e.g.
.../_vti_bin/lists.asmx?op=GetListItems
or../_vti_bin/lists.asmx?op=GetListItems&WSDL
) and then look at the corresponding MSDN documentation (such as GetListItems) on how to "use" the web-service.It takes a little bit of familiarity to "know" to map
viewFields
with<viewFields>...</viewFields>
(most work like this), but... the MSDN documentation (if prodded carefully) says "what" to put in the XML where the WSDL just gives the near-useless outline. There are a number of examples in the tubes (and related SO questions) of hand-rolled SOAP access for SP for various tasks.Microsoft also has some Open Specifications -- the link is always hard for me to find. Lots of stuff under the SharePoint branch. YMMV and it's mostly white-paper, but a good resource.
Not sure what tools Flex has but because of the limited WSDL support, most of the mapping has to be hand-coded or come from a better definition source -- hopefully "an existing library" which can be used directly or modified-to-suit.
I would highly recommend using a tool for testing the service access -- e.g. soapUI, which actually has a horrid UI -- because even the littlest error will come back with a cryptic error messages. Also, make sure to use SOAP 1.2.
Happy (less than maximal pain) coding.
P.S. A more specific question about a specific web-service would likely yield better responses.