SWsoft SiteBuilder Integration API v3.2 Reference

AccountWebService.GetAccountByName Method 

 [This is preliminary documentation and subject to change.]

Find account by user name

[C#]
public AccountValue GetAccountByName(
   string username
);

Parameters

username
Account user name

Return Value

Instance of AccountValue if an account is found. Otherwise, null

Example SOAP 1.1

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

<?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/AccountService/v_3_2">
      <Login>string</Login>
      <Password>string</Password>
    </CredentialsSoapHeader>
  </soap:Header>
  <soap:Body>
    <GetAccountByName xmlns="http://swsoft.com/SiteBuilder/AccountService/v_3_2">
      <username>string</username>
    </GetAccountByName>
  </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>
    <GetAccountByNameResponse xmlns="http://swsoft.com/SiteBuilder/AccountService/v_3_2">
      <UserAccount>
        <AccountId>string</AccountId>
        <IsBuiltIn>boolean</IsBuiltIn>
        <CreationDate>dateTime</CreationDate>
        <UserName>string</UserName>
        <Email>string</Email>
        <FirstName>string</FirstName>
        <LastName>string</LastName>
        <OwnerName>string</OwnerName>
        <IsLockedOut>boolean</IsLockedOut>
        <Role>Administrator or Reseller or SiteOwner</Role>
        <Profile>
          <Language>
            <LanguageId>string</LanguageId>
            <Code>string</Code>
            <Active>boolean</Active>
            <EnglishName>string</EnglishName>
          </Language>
          <Theme>
            <ThemeId>string</ThemeId>
            <Active>boolean</Active>
            <Name>string</Name>
            <Code>string</Code>
          </Theme>
          <ListSize>int</ListSize>
          <HideOverviewPage>boolean</HideOverviewPage>
          <ShowGettingStarted>boolean</ShowGettingStarted>
          <TemplateListSize>int</TemplateListSize>
        </Profile>
        <PlanId>string</PlanId>
        <IsChangePasswordAllowed>boolean</IsChangePasswordAllowed>
        <OwnerId>string</OwnerId>
      </UserAccount>
    </GetAccountByNameResponse>
  </soap:Body>
</soap:Envelope>

See Also

AccountWebService Web Service | Web services