Sites.ExportWeb, méthode (websvcSites)

Exports a Web site.

Espace de noms : websvcSites
Assembly : STSSOAP (dans stssoap.dll)

Syntaxe

'Déclaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/ExportWeb", RequestNamespace:="https://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace:="https://schemas.microsoft.com/sharepoint/soap/", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
Public Function ExportWeb ( _
    jobName As String, _
    webUrl As String, _
    dataPath As String, _
    includeSubwebs As Boolean, _
    includeUserSecurity As Boolean, _
    overWrite As Boolean, _
    cabSize As Integer _
) As Integer
'Utilisation
Dim instance As Sites
Dim jobName As String
Dim webUrl As String
Dim dataPath As String
Dim includeSubwebs As Boolean
Dim includeUserSecurity As Boolean
Dim overWrite As Boolean
Dim cabSize As Integer
Dim returnValue As Integer

returnValue = instance.ExportWeb(jobName, webUrl, dataPath, includeSubwebs, includeUserSecurity, overWrite, cabSize)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/ExportWeb", RequestNamespace="https://schemas.microsoft.com/sharepoint/soap/", ResponseNamespace="https://schemas.microsoft.com/sharepoint/soap/", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public int ExportWeb (
    string jobName,
    string webUrl,
    string dataPath,
    bool includeSubwebs,
    bool includeUserSecurity,
    bool overWrite,
    int cabSize
)

Paramètres

  • jobName
    The file name to use for content migration packages.
  • webUrl
    The URL of the site to export.
  • dataPath
    The directory location where content migration packages are placed.
  • includeSubwebs
    true to include subwebs; otherwise, false.
  • includeUserSecurity
    true to include site security groups and group membership information; otherwise, false.
  • overWrite
    true to overwrite the content migration package if it exists; otherwise, false.
  • cabSize
    Indicates the maximum size for the CMP (content migration package) file.

Notes

To access the Sites service and its methods, set a Web reference to https://Server_Name/[sites/][Site_Name/]_vti_bin/Sites.asmx.

Exemple

SOAP Request Format   Following is a sample SOAP 1.1 request. Replace the placeholders shown need with actual values.

POST /_vti_bin/sites.asmx HTTP/1.1
Host: ServerName
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://schemas.microsoft.com/sharepoint/soap/ExportWeb"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ExportWeb xmlns="https://schemas.microsoft.com/sharepoint/soap/">
      <jobName>string</jobName>
      <webUrl>string</webUrl>
      <dataPath>string</dataPath>
      <includeSubwebs>boolean</includeSubwebs>
      <includeUserSecurity>boolean</includeUserSecurity>
      <overWrite>boolean</overWrite>
      <cabSize>int</cabSize>
    </ExportWeb>
  </soap:Body>
</soap:Envelope>

SOAP Response Format   Following is a sample SOAP 1.1 response. Replace the placeholders shown with actual return values.

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <ExportWebResponse xmlns="https://schemas.microsoft.com/sharepoint/soap/">
      <ExportWebResult>int</ExportWebResult>
    </ExportWebResponse>
  </soap:Body>
</soap:Envelope>

Voir aussi

Référence

Sites, classe
Membres Sites
websvcSites, espace de noms