SiteWebService.MigrateSiteWithHost Method 

This method expands functionality of CreateSiteWithHost by adding migration/conversion ability. Content of a site (specified by oldSiteId) made by SiteBuilder 2.0.5 for Windows can be converted to the content made by SiteBuilder 3.x for Windows.

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

Parameters

ownerId
Site owner's ID.
alias
Site name.
ipAddress
Host address (IP format only).
publishUsername
Login to the server (usually FTP) where the site will be published.
publishPassword
Password to the server (usually FTP) where the site will be published.
publishWorkingDirectory
The path on the server that will contain files of the published site.
publishWebSiteUrl
URL to access published web site.
oldInstallationDBConnection
Connection string to a database of SiteBuilder 2.0.5 for Windows.
oldInstallationPath
Installation path of SiteBuilder 2.0.5 for Windows.
oldSiteId
ID of the site in SiteBuilder 2.0.5 for Windows.

Return Value

SiteValue object.

Example SOAP 1.1

Request
POST /sbw_trunk/ServiceFacade/4.5/SiteWebService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://swsoft.com/webservices/sb/4.5/SiteService/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/webservices/sb/4.5/SiteService">
      <Login>string</Login>
      <Password>string</Password>
    </CredentialsSoapHeader>
  </soap:Header>
  <soap:Body>
    <MigrateSiteWithHost xmlns="http://swsoft.com/webservices/sb/4.5/SiteService">
      <ownerId>string</ownerId>
      <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/webservices/sb/4.5/SiteService">
      <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>
            <FallbackIP>string</FallbackIP>
            <HostId>string</HostId>
          </StandardLocation>
          <Mode>XCopy or Ftp or Vps or VpsLinux or Unknown</Mode>
        </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>
            <FallbackIP>string</FallbackIP>
            <HostId>string</HostId>
          </StandardLocation>
          <Mode>XCopy or Ftp or Vps or VpsLinux or Unknown</Mode>
        </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