WCF Web 服务与 Sharepoint 兼容吗?

发布于 2024-07-24 03:29:34 字数 215 浏览 4 评论 0原文

我试图通过 Sharepoint 设计器将 dataview webPart 放置在 WSS 页面上,使用 WCF Web 服务,但是当我放置 Web 服务的 WSDL 时,出现错误。 我将 WS 迁移到 ASP.Net WS,它运行得很好。

该错误与肥皂信封有关。 我现在使用匿名消费(不想增加任务的复杂性)

我必须在 WCF 上做些什么才能使其与 WSS “兼容”吗?

I am trying to place a dataview webPart on a WSS page through Sharepoint designer, consuming a WCF Web service, buth when I place the WSDL of my Web Service, it gives me an error. I migrated the WS to ASP.Net WS and it work perfectly.

The error is related to the Soap envelope. I am using anonymous consumption for now (don't want to add complexity to the task)

Is there something I have to do on WCF to make it 'compatible' with WSS?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

花开柳相依 2024-07-31 03:29:34

默认情况下,OOTB 您无法通过 SharePoint Designer 使用 WCF 服务(据我所知)。

但是 "使用 WCF 服务使用 Sharepoint Designer” 描述了调整数据源以便您可以在 SharePoint Designer 中读取数据的解决方法。

By default OOTB you can't consume a WCF service through SharePoint Designer (afaik).

However "Consume WCF service using Sharepoint Designer" describes a workaround to adjust the datasource so you can read it in SharePoint Designer.

贩梦商人 2024-07-31 03:29:34

听起来您正尝试将 WCF Web 服务放入 SharePoint 中,对吧? 如果是这样的话,我最近遇到了这个问题。 基本上有两种方法:

  1. 转换 SharePoint 的 web.config,使其可以使用成熟的 WCF。
  2. 编写您自己的 HTTP 处理程序,并对 SharePoint web.config 进行最少(如果有)更改。

我选择了后者,但请在此处的 ThreeWill SharePoint Depth wiki 上详细了解两者:在 SharePoint 中托管类似 WCF 的 REST 和 JSON 服务

It sounds like you are trying to put a WCF web service within SharePoint, right? If that is the case I ran into just this problem recently. You basically have two approaches:

  1. Transforming SharePoint's web.config such that it can use full-blown WCF.
  2. Write your own HTTP Handler with minimal (if any) changes to the SharePoint web.config.

I have opted for the latter, but go into detail on both at the ThreeWill SharePoint Depth wiki here: Hosting WCF-like REST and JSON Services in SharePoint.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文