Some changes/new functions to support the webservice client

Signed-off-by: pgnunes <pgh.nunes@gmail.com>