通过 Web 服务设置 Sharepoint 站点主题? [英] Setting a Sharepoint Site Theme through a Web Service?

查看:33
本文介绍了通过 Web 服务设置 Sharepoint 站点主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过 Web 服务更改 Sharepoint 2007 站点主题?我知道它可以通过对象模型和(我认为)SPWeb.ApplyTheme 来完成,但我在可用的 Web 服务中没有看到任何东西,除了 Webs.asmx 中的 CustomizeCss,这似乎并不是我所需要的.

Is it possible to change a Sharepoint 2007 Site Theme through a Web Service? I know it can be done through the Object Model with (i think) SPWeb.ApplyTheme, but I did not see anything in the available Web Services, apart from CustomizeCss in Webs.asmx, which does not seem to be exactly what I need.

推荐答案

这是不可能的.但是,您可以编写自己的自定义 SharePoint Web 服务来向您公开此功能.可以在此处找到有关如何在 SharePoint 中制作自己的自定义 Web 服务的演练:

This is not possible out of the box. However, you can write your own custom SharePoint web service that exposes this feature to you. A walkthrough on how to make your own custom web service in SharePoint can be found here:

http://msdn.microsoft.com/en-us/library/ms464040.aspx

另一种方法是创建您自己的主题设置器并通过请求调用它.可以在此处找到一个示例:

Another way would be to create your own themesetter and invoke it via a request. An example of this can be found here:

http://www.sharepoint-tips.com/2006/03/automatically-applying-theme-to-site.html

这篇关于通过 Web 服务设置 Sharepoint 站点主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆