Web service API

How to use PageSeeder's Web service API


This document provides some basic explanation about the production of output in a service or servlet response.


PageSeeder services are more modern than PageSeeder servlets and have a slightly different object model. Additional abstractions have simplified the most complex objects and using more attributes has made the returned XML is less verbose, easier to read and faster to parse.

However, information related to the output from servlets is still relevant to output from services.

XFormat – for servlets only

XFormat is an XML format generated by PageSeeder servlets. With the release of version 5.9, many servlets were replaced by services. This trend will continue in future. In the meantime, the information below continues to have some relevance.


XTemplates are the technology that creates XFormat. An XTemplate is a basic XML serialization form of a core PageSeeder object such as a URI or an XLink 

  <usertitle>A great document</usertitle>

Expressing the fields of these objects as XML ensures the servlet output is consistent, but it can also be verbose and complex.


The output of an xformat-based servlet has the following structure:

  <wo-constants> ... </wo-constants>
  <wo-jsessionid> ... </wo-jsessionid>
  <wo-request> ... </wo-request>
  <!-- Servlet specific content -->

WO Objects

Common objects provided for convenience include:


System constants for use in the presentation layer.



The session ID of an active user session returned as XML:



Some parameters may be returned in the response.

Created on , last edited on