簡體   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