繁体   English   中英

如何从javascript调用sharepoint快速搜索Web服务?

[英]how to call sharepoint fast search web service from javascript?

我怎么能叫从SharePoint快速搜索Web服务前的方法:QueryEx,GetQuerySuggestions我跟着这

但是每次我得到这个错误:

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><faultcode>soap:Client</faultcode><faultstring>Data at the root level is invalid. Line 1, position 1.</faultstring></soap:envelope>

我还检查了提琴手的传出消息,发现正文为0,并且返回“ 401未经授权”,请问有什么想法吗?

问题是从JavaScript跨域调用到WCF服务,因此我在Web应用程序的同一域中创建了一个新的Web服务,并使用了其中的其他服务。

javascript ---- call ---->代理webservice ----- call ----->不同域中的webservice

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM