Share via


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 := "https://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 = "https://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(String)

ImportObjects(String, [])

Wait(Int32)