惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - Lordan

有sharepoint团队的公司 spgridview的过滤功能回调时发生错误~ moss web service的权限问题 LINQ to SharePoint 试用感受, 欢迎讨论~ 获取共享服务中用户配置的其它额外信息 发布一款天气预报webpart MOSS开发Solution Community Kit for SharePoint 利用资源文件实现多语言的系统 调试有JS的InfoPath 2003 发布一个域安全级别的无代码InfoPath表单作为文档库模版 (InfoPath 一) InfoPath表单容器XmlFormView 列出W3WP进程端口号的详细内容(小技巧) 在blog中添加attachments功能 (修改系统Control) 在blog中添加attachments功能 (利用SharePoint:AttachmentUpload ) (未解决) 显示表单页面的编辑模式 - Lordan - 博客园 利用SharePoint:DelegateControl部署自定义UserControl Flash + SharePoint WebService播放视频 (二) 文档库中文件夹的权限管理
Flash + SharePoint WebService播放视频 (一)
Lordan · 2008-05-07 · via 博客园 - Lordan

需求:
 老板需要一个用Flash播放视频的东东, 其实功能类似于youtube, 然后视频之类的东西都是放在SharePoint Library里面的.

分析:
 1. 花了点时间找关于Flash读取SharePoint数据的资料, 于是决定用SharePoint WebService来做.
 2. Flash没啥经验, 要写AS之类的, 只能多求助帮助文档了.

实现(部分一,实现SharePoint WebService部分):

1. 在SharePoint里面创建了一个Custom List, 里面新增了三个Field,分别:Category, Picture和Video.

2. 通过VS2005创建了一个WebService工程, 然后引用了Microsoft.SharePoint.dll.

3. 然后实现获取Category, Picture和Video的WebMethod, 代码比较简单就不贴出来了.

4. 右键修改asmx文件, View Markup, 然后把Code behind删除.

4. 为工程强命名.

5. 然后编译工程.

6. 打开Visual Studio Tools里面的命令工具, 然后执行Disco命令, 为WebService工程生成WSDL和DISCO两个文件. 命令如下:
Disco /out:<directoryName> <url>
请参考帮助文档.

7. 修改两个文件的头部:<?xml version="1.0" encoding="utf-8"?>改成:
<%@ Page Language="C#" Inherits="System.Web.UI.Page"    %>
<%@ Assembly Name="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint.Utilities" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<% Response.ContentType = "text/xml"; %>

8. 修改WSD文件: 找到<soap:address Location="" />元素, 替换成:
<soap:address location=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(SPWeb.OriginalBaseUrl(Request)),Response.Output); %> />

9. 修改WSD文件: 找到<soap12:address Location="" />元素, 替换成:
<soap12:address location=<% SPHttpUtility.AddQuote(SPHttpUtility.HtmlEncode(SPWeb.OriginalBaseUrl(Request)),Response.Output); %> />

8和9两个元素基本在最底部.
10. 把两个文件的扩展名改成aspx, 例如: File.WSDL和File.DISCO, 改成: FileWSDL.aspx和FileDISCO.aspx

11. 把asmx文件和上两个文件拷贝到目录: X:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI. SharePoint WebService都是放在该目录下.

12. 把WebService生成的DLL放在: X:\Inetpub\wwwroot\wss\VirtualDirectories\[port]\bin

13. 输入: Http://[Name]/_vti_bin/文件.asmx,出现熟悉的所有的WebMethod界面了.

另我把一些关于web和list的信息放在了XML文件里面, 迁移WebService时候不用重新编译, 同样XML放在ISAPI文件下面.
呵呵, 至此SharePoint WebService部分已经成功实现. 下一篇关于Flash部分了.