SWsoft SiteBuilder Integration API v3.2 Reference

SiteWebService.MigrateSiteWithHost Method 

 [This is preliminary documentation and subject to change.]

The same as for CreateSiteWithHost, except for the additional step - migration/conversion content of a site from SiteBuilder 2.0.5 for Windows specified by oldSiteId to a newly created site in SiteBuilder 3.x for Windows

[C#]
public SiteValue MigrateSiteWithHost(
   string username,
   string alias,
   string ipAddress,
   string publishUsername,
   string publishPassword,
   string publishWorkingDirectory,
   string publishWebSiteUrl,
   string oldInstallationDBConnection,
   string oldInstallationPath,
   string oldSiteId
);

Parameters

username
Username of a site owner
alias
Site alias
ipAddress
Host address (only IP format)
publishUsername
Publishing settings username
publishPassword
Publishing settings password
publishWorkingDirectory
Publishing settings working directory
publishWebSiteUrl
The address the web site is available after publication
oldInstallationDBConnection
Connection string to the database of SiteBuilder 2.0.5 for Windows installation
oldInstallationPath
Installation path of SiteBuilder 2.0.5 for Windows
oldSiteId
ID of site in SiteBuilder 2.0.5 for Windows. The content of this site will be converted to the newly created site

Return Value

Value object of a created site

Example SOAP 1.1

Request
POST /ServiceFacade/version_3_2/SiteWebService.asmx HTTP/1.1
Host: sitebuilder.swsoft.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://swsoft.com/SiteBuilder/SiteService/v_3_2/MigrateSiteWithHost"

<?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="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <CredentialsSoapHeader xmlns="http://swsoft.com/SiteBuilder/SiteService/v_3_2">
      <Login>string</Login>
      <Password>string</Password>
    </CredentialsSoapHeader>
  </soap:Header>
  <soap:Body>
    <MigrateSiteWithHost xmlns="http://swsoft.com/SiteBuilder/SiteService/v_3_2">
      <username>string</username>
      <alias>string</alias>
      <ipAddress>string</ipAddress>
      <publishUsername>string</publishUsername>
      <publishPassword>string</publishPassword>
      <publishWorkingDirectory>string</publishWorkingDirectory>
      <publishWebSiteUrl>string</publishWebSiteUrl>
      <oldInstallationDBConnection>string</oldInstallationDBConnection>
      <oldInstallationPath>string</oldInstallationPath>
      <oldSiteId>string</oldSiteId>
    </MigrateSiteWithHost>
  </soap:Body>
</soap:Envelope>
Response
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="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <MigrateSiteWithHostResponse xmlns="http://swsoft.com/SiteBuilder/SiteService/v_3_2">
      <MigrateSiteWithHostResult>
        <Id>string</Id>
        <Alias>string</Alias>
        <OwnerId>string</OwnerId>
        <OwnerUserName>string</OwnerUserName>
        <IsActive>boolean</IsActive>
        <PublishingSettings>
          <Id>string</Id>
          <StandardLocation>
            <Address>string</Address>
            <UserName>string</UserName>
            <Password>string</Password>
            <WorkingDirectory>string</WorkingDirectory>
            <WebSiteUrl>string</WebSiteUrl>
            <IsAnonymous>boolean</IsAnonymous>
            <Veid>long</Veid>
            <VerifyStatus>Unverified or LocationError or UnknownError or StaticOnly or Dynamic</VerifyStatus>
            <LastVerifyAttempt>dateTime</LastVerifyAttempt>
          </StandardLocation>
          <FtpLocation>
            <Address>string</Address>
            <UserName>string</UserName>
            <Password>string</Password>
            <WorkingDirectory>string</WorkingDirectory>
            <WebSiteUrl>string</WebSiteUrl>
            <IsAnonymous>boolean</IsAnonymous>
            <Veid>long</Veid>
            <VerifyStatus>Unverified or LocationError or UnknownError or StaticOnly or Dynamic</VerifyStatus>
            <LastVerifyAttempt>dateTime</LastVerifyAttempt>
          </FtpLocation>
          <Mode>XCopy or Ftp or Vps</Mode>
          <Scenario>Standard or FreeSwsoftHosting or AnyFtp</Scenario>
        </PublishingSettings>
        <LastPublishingSettings>
          <Id>string</Id>
          <StandardLocation>
            <Address>string</Address>
            <UserName>string</UserName>
            <Password>string</Password>
            <WorkingDirectory>string</WorkingDirectory>
            <WebSiteUrl>string</WebSiteUrl>
            <IsAnonymous>boolean</IsAnonymous>
            <Veid>long</Veid>
            <VerifyStatus>Unverified or LocationError or UnknownError or StaticOnly or Dynamic</VerifyStatus>
            <LastVerifyAttempt>dateTime</LastVerifyAttempt>
          </StandardLocation>
          <FtpLocation>
            <Address>string</Address>
            <UserName>string</UserName>
            <Password>string</Password>
            <WorkingDirectory>string</WorkingDirectory>
            <WebSiteUrl>string</WebSiteUrl>
            <IsAnonymous>boolean</IsAnonymous>
            <Veid>long</Veid>
            <VerifyStatus>Unverified or LocationError or UnknownError or StaticOnly or Dynamic</VerifyStatus>
            <LastVerifyAttempt>dateTime</LastVerifyAttempt>
          </FtpLocation>
          <Mode>XCopy or Ftp or Vps</Mode>
          <Scenario>Standard or FreeSwsoftHosting or AnyFtp</Scenario>
        </LastPublishingSettings>
        <HostId>string</HostId>
        <ResellerId>string</ResellerId>
        <ResellerUserName>string</ResellerUserName>
        <CreationDate>dateTime</CreationDate>
      </MigrateSiteWithHostResult>
    </MigrateSiteWithHostResponse>
  </soap:Body>
</soap:Envelope>

See Also

SiteWebService Web Service | Web services