Enabling LP

The enable operation is used to enable LP on the server. This operation is available on Linux only.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet enabling LP's includes the enable operation node:

<packet version="1.5.0.0">
<locale>
   <enable>
   …
   </enable>
</locale>
</packet>

 

The enable node is presented by type LocaleEnableInput (locale.xsd), and its graphical representation is as follows:

 

Response Packet Structure

The enable node of the output XML packet is presented by type LocaleEnableOutput (locale.xsd) and structured as follows:

 

Samples

Enabling a single LP

The following request packet enables French LP:

<packet>
  <locale>
    <enable>
        <filter>
        <id>fr-FR</id>
        </filter>
    </enable>
  </locale>
</packet>

Response:

<packet>
  <locale>
    <enable>
      <result>
        <status>ok</status>
        <filter-id>fr-FR</filter-id>
        <id>fr-FR</id>
      </result>
    </enable>
  </locale>
</packet>

 

If the LP was not found, the response from the server looks as follows:

<packet>
  <locale>
    <enable>
      <result>
        <status>error</status>
        <errcode>1013</errcode>
        <errtext>Locale does not exist</errtext>
        <filter-id>fr-FR</filter-id>
        <id>fr-FR</id>
      </result>
    </enable>
  </locale>
</packet> 
Enabling multiple LP's

The following request packet enables French and Russian LP's:

<packet>
  <locale>
    <enable>
        <filter>
          <id>fr-FR</id>
          <id>ru-RU</id>
        </filter>
    </enable>
  </locale>
</packet>

Reponse:

<packet>
  <locale>

    <enable>
      <result>
        <status>error</status>
        <errcode>1013</errcode>
        <errtext>Locale does not exist</errtext>
        <filter-id>fr-FR</filter-id>
        <id>en-US</id>
      </result>
      <result>
        <status>ok</status>
        <filter-id>ru-RU</filter-id>
        <id>ru-RU</id>
      </result>
    </enable>
  </locale>
</packet>