basic xml/json api support: supports CAPS and SEARCH functions