Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  <value><struct>
    <member>
      <name>__objtype</name>
      <value>Dictionary</value>
    </member>
    <member>
      <name>id</name>
      <value>4212</value>
    </member>
    <member>
      <name>name</name>
      <value>My Dictionary</value>
    </member>
    <member>
      <name>description</name>
      <value>A test dictionary</value>
    </member>
  </struct></value>

Methods

Method nameArgumentsReturnsDescription
getTermWebVersionNoneVersion stringReturns the version string from TermWeb
initSessionNoneSession IDCreates a session as auto-login guest
initSessionclient, user, passwordSession IDCreates a session as for specified client and user
closesessionID-Closes the session
getAllsessionID, object typeArray of TermWeb objectsRetrieves all available objects of specified type. The possible types are dictionary, domain
setAllSelectedsessionID, object type-Selects all available objects of specified type. The possible types are section, domain
setSelectedsessionID, object type, ID-Select object with specified type and ID. The possible types are dictionary, language, domain, section
setSelectedsessionID, object type, array of IDs-Select all objects with specified type and IDs. The possible types are domain, section
getSelectedsessionID, object typeThe selected objectReturns the selected object of specified type. The possible types are dictionary
getIndexTermssessionID, search stringA list of index termsReturns the index terms that matches the search expression.
getIndexTermssessionID, search condition mapA list of index termsReturns the index terms that matches the search conditions
getIndexTermssessionID, search condition map, target languageA list of index termsReturns index terms for the specified target language corresponding to the index terms that matches the search conditions
getConceptEntrysessionID, conceptEntryIDA concept entry

Returns the concept entry with specified ID.

getSourceLanguagesessionIDA language codeReturns the ISO 639-2 language code for the currently selected source language
setSourceLanguagesessionID, language code-Sets the currently selected source language
getObjectsessionID, object type, idA TermWeb objectReturns the object with specified type and id
getObjectByNamesessionID, object type, nameA TermWeb objectReturns the object with specified type and name
createsessionID, object-Creates a new TermWeb object in the current context

Error handling

If an error occurs during processing of a method, an error message containing a description of the error together with an error code is returned.

Example: Failed to invoke method getAll in class org.termweb.api.internal.XmlRpcReceiver: The session has expired. (Code:1300)

The errors and codes are as follows:

...

The client account is disabled

...