SystemWebService.GetSkins Method 

Returns a list of the details of the available skins.

[C#]
public TotalListOfThemeValue GetSkins(
   bool activeOnly
);

Parameters

activeOnly
Boolean indicator. If set to true, the method returns only active skins. Otherwise, it returns all the skins.

Return Value

A list of ThemeValue.

Access

Role Access/rights description
Administrator Unrestricted access to all skins in the system.
Reseller, SiteOwner, Anonymous user Unrestricted access only to the active skins. SOAP fault detail SWsoft.SiteBuilder.BO.Facade.SecurityException will be returned, if the activeOnly parameter specified as false.

Note: if a license doesn't allow the skin change, then the restrictions specified above are not applicable. And all roles have unrestricted access to the skin.

Example SOAP 1.1

Request
POST /wsb/ServiceFacade/4.1/SystemWebService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://swsoft.com/webservices/sb/4.1/SystemService/GetSkins"

<?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.1/SystemService">
      <SsoSessionId>string</SsoSessionId>
      <SsoId>string</SsoId>
      <Login>string</Login>
      <Password>string</Password>
    </CredentialsSoapHeader>
  </soap:Header>
  <soap:Body>
    <GetSkins xmlns="http://swsoft.com/webservices/sb/4.1/SystemService">
      <activeOnly>boolean</activeOnly>
    </GetSkins>
  </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>
    <GetSkinsResponse xmlns="http://swsoft.com/webservices/sb/4.1/SystemService">
      <GetSkinsResult>
        <TotalCount>int</TotalCount>
        <Items>
          <ThemeValue>
            <ThemeId>string</ThemeId>
            <Active>boolean</Active>
            <Name>string</Name>
            <Code>string</Code>
          </ThemeValue>
          <ThemeValue>
            <ThemeId>string</ThemeId>
            <Active>boolean</Active>
            <Name>string</Name>
            <Code>string</Code>
          </ThemeValue>
        </Items>
      </GetSkinsResult>
    </GetSkinsResponse>
  </soap:Body>
</soap:Envelope>

See Also

SystemWebService Web Service | Web services