PublishingService Class

The SOAP interface for the Publishing Web Service.

Inheritance Hierarchy

System.Object
  System.ComponentModel.MarshalByValueComponent
    System.Web.Services.WebService
      Microsoft.SharePoint.Publishing.WebServices.PublishingService

Namespace:  Microsoft.SharePoint.Publishing.WebServices
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<WebServiceBindingAttribute(ConformsTo := WsiProfiles.BasicProfile1_1)> _
<WebServiceAttribute(Namespace := "http://schemas.microsoft.com/sharepoint/soap/")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class PublishingService _
    Inherits WebService
'Usage
Dim instance As PublishingService
[WebServiceBindingAttribute(ConformsTo = WsiProfiles.BasicProfile1_1)]
[WebServiceAttribute(Namespace = "http://schemas.microsoft.com/sharepoint/soap/")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class PublishingService : WebService

Remarks

The Publishing Service is responsible for creating PageLayout objects, disconnecting PageLayout objects from PublishingPage objects, and reconnecting those PageLayout objects to the PublishingPage objects to which they were connected.

Additionally, you can use this class to export or import PublishingPage objects between source and target PublishingWeb objects, get status of a publishing object or collection of publishing objects, and more.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

PublishingService Members

Microsoft.SharePoint.Publishing.WebServices Namespace

CreatePageLayout

DisconnectPageLayout

ReconnectPageLayout

ExportObjects

ImportObjects

Wait