我想将SharePoint数据用于非.Net平台.为此,我已经使用了像Lists.asmx,Webs.asmx和search.asmx这样的SharePoint OOTB服务.我已使用Authentication.asmx成功添加了对基于表单的身份验证的支持.现在,我想在线提供对Office 365 SharePoint的支持.为此,我有一个我正在研究的SharePoint Online网站演示.问题,我面临的是当我使用Authentication.asmx的Mode方法时,我得到'Forms'作为回应:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ModeResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<ModeResult>Forms</ModeResult>
</ModeResponse>
</soap:Body>
</soap:Envelope>
Run Code Online (Sandbox Code Playgroud)
但是,当我使用Login.asmx并传递正确的用户名和密码时,我收到'PasswordNotMatch'错误,相同的凭据在浏览器中正常工作.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<LoginResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<LoginResult>
<ErrorCode>PasswordNotMatch</ErrorCode>
<TimeoutSeconds>0</TimeoutSeconds>
</LoginResult>
</LoginResponse>
</soap:Body>
</soap:Envelope>
Run Code Online (Sandbox Code Playgroud)
注意: - 这适用于FBA非Office 365 SharePoint站点.
有人可以帮我实现对Office 365 SharePoint Online OOTB服务的支持吗?
sharepoint web-services sharepoint-api sharepoint-2010 office365
如何使用REST API获取SharePoint列表的不同列数据?有没有办法实现它而不循环?
谢谢!
我有两个Lat/long表,每个表1000行.我想使用Google Map API计算两个纬度/经度之间的距离,并在DB中存储距离.代码工作正常,但问题是如何从javascript返回计算距离.我尝试隐藏字段来存储距离,因为我在页面加载中编写了下面的代码,但它不起作用:
SqlConnection sql_con = new SqlConnection("Database=myDB;Server=mySever;User Id=myID;password=PWD");
SqlCommand sql_cmd = new SqlCommand("select Zip,Latitude,Longitude from ZipCodes", sql_con);
SqlDataAdapter sql_adt = new SqlDataAdapter(sql_cmd);
DataSet dsZip = new DataSet();
sql_adt.Fill(dsZip);
sql_cmd = new SqlCommand("select * from MyPlaceLatLong", sql_con);
sql_adt = new SqlDataAdapter(sql_cmd);
DataSet dsStore = new DataSet();
sql_adt.Fill(dsStore);
for (int zcnt = 0; zcnt < dsZip.Tables[0].Rows.Count; zcnt++)
{
for (int i = 0; i < dsStore.Tables[0].Rows.Count; i++)
{
Page.ClientScript.RegisterClientScriptBlock(GetType(), "myScssript", "<script>" +
"var origin1 = new google.maps.LatLng("+dsZip.Tables[0].Rows[zcnt]["Latitude"].ToString()+","+ dsZip.Tables[0].Rows[zcnt]["Longitude"].ToString()+");" +
"var origin2 …Run Code Online (Sandbox Code Playgroud) 使用UISearchBar在UITableView中搜索文本.我只是想知道如何突出搜索文本.突出显示可以使文本变粗或更改文本颜色.
例如,如果我在UITableView中使用UISearchBar搜索文本"Stack",其中包含一个字符串为"Stackoverflow"的行,那么现在我的搜索结果应该以" Stack overflow"的方式出现.
在此先感谢..快乐编码..
我有一个包含超过一千件商品的下拉列表.点击clear按钮后,它应该清除所有项目.为了删除我尝试循环.
从下拉列表或列表框中删除所有项目的最快方法是什么?
javascript ×2
sharepoint ×2
c# ×1
ipad ×1
iphone ×1
jquery ×1
objective-c ×1
office365 ×1
web-services ×1