Documentation Center

Remote login to a publication

Grants a session ID based on a username and password combination. When the collection and book parameters are provided, this session ID is valid to use as the id parameter for other API calls that require a book and collection parameter.

Example API call

/servlets3/wietmsd?target=interface&action=get_session_id&username=guest&password=guest&collection=default&book=PDMUNITTEST

Parameters

ParameterDescription
targetinterface
actionget_session_id
usernameThe username of the user who is logging in.
passwordThe password that matches the username.
collectionThe name of the collection that the publication is registered in, such as default.
bookThe name of the publication, such as PDMUNITTEST.

Returns

On success
<?xml version="1.0"?>
<results>
  <status> SUCCESS</status>
  <message> Success!!!</message>   
  <empty_passwd/>
  <temp_passwd/>
  <request name="get_session_id">
    <collection>default</collection>
    <book>PDMUNITTEST</book>
  </request>
  <reply>
    <session-id>1508952568324</session-id>
  </reply>
</results>
On failure
<results>
  <status> ERROR</status> 
  <message> Invalid username or password</message>
  <request name="get_session_id" >
    <collection>default</collection> 
    <book>PDMUNITTEST</book>
  </request>
  <reply>
    <session-id/>
  </reply>
</results>